3- Writing script on "Script editor"

For long scripts, you can use Script editor.

To open it, click on 'Show Editor".

Show Editor.png