Glad it worked.
As for rules, I'd just say every command has a syntax and sometimes an alternate syntax as well (like different delimiters so you can nest commands).
When issuing multiple commands, you use Macro and the delimiter between commands is a !.
Most commands start with the pluginname then a | then the function or device in the plugin and use ~ for the rest of the delims. However, best to just look up each command and know the syntax using the wiki.