You create a script by selecting either the General Scripts directory or the Watershed Directory in the Script Context Pane of the Script Editor and choosing File > New. Enter the name of the script in the subsequent dialog.