All scripts must reside in the scripts folder in the HomeSeer application directory.  Scripts commonly have the extension ".txt" or ".vbs" or ".vb" (for scripts) or .cs for C# scripts, and are simple text files. You can edit your scripts in this directory. Here are the steps to create a simple script that turns a light off if it's on: