Adds a new script command to the Tool menu.
Commands can be added only from the initialize functions of scripts.
The name is used to override the default shortcut in a key-mapping. For example add a line like this in the user-options:
key-mappings.windows-style.example-command = SHIFT+F9
Example:
function initialize (settings) settings addCommand ("close-xml-element", "Close XML Element", "", ref closeXMLTag, "xml") settings addCommand ("format-xml", "Format XML document", "", ref formatXML, "xml") end