In most cases it makes a lot of sense to start developing the script from an example obtained from the Enfocus web site or from another Switch user (see How to get more help for pointers to these resources).
To start developing your script package from an existing example: