System commands can include the following:
Predefined macro variables other than those listed here do not work in system commands. Macro variable <$$_macroparam> can be used only within a macro; see §37.7 Passing a parameter to a macro.
You can use macro expressions in system commands: math and string manipulations, conditional expressions, loops, formatted output, and so forth; see §37.6 Using expressions in macros.