Using the Statements menu

Statements are added or inserted following the statement where the cursor is positioned.

Create a New script (or Open an existing script), then select the action from the Statements menu that corresponds to the statement you require: