Yes, by using a function in a script and assigning the script an icon you can get around this limitation.
Assigning icons to scripts is very easy, you just hit one button and the current view is rendered as an icon.
Using the functions is mostly rather easy too, the commandmanger will show you the commands number which you can use with callcommand in the script.
Cheers
Bj