...go ahead and read the manual, we won't tell anyone.

Help Topics > All Commands > DoMenu
Not Tagged

The doMenu command performs the menu command specified by "menuItem" as though you had chosen the command from the menu.

Usage:

doMenu "itemName" [menuName] [without dialog]

Example:

doMenu "new tile"