DoMenu-macro
Execute the menu command with the specified ID by running its script immediately.
Def DoMenu { menu -E %1 };
The following script executes the Statistics on Column menu command. It then creates the DescStatsOnCols reportsheet in the active workbook.
domenu 52638; // 52638 is ID of Statistics on Column menu command.