Create a script
create an icon in the toolbar to launch the script
install customize toolbar plugin from the plugin manager
the icon of the script is disabled, you can see it but clicking on it does nothing.
Yes, this is a bug with the customize toolbar plugin. Please report this bug to that project, not this one.