MoneyWorks Manual
Edit
InstallMenuCommand (menuItemText, handlerNameString)
Install a command in the scripts section of the Command menu. The handler will be called when the command is selected. You can remove the item by calling again with an empty handler name. Your handler does not need to be declared public since the script context is known at the time of installation.