To open the script manager window, go to Options->Script Manager. To add a script start at name field at the bottom. Give your script a name. Then in the script field you can enter a sequence of commands separated by a semicolon(";"). Then go to File->Add Script. You will see that your script gets added to the list.
To run your script just click on the name.
An example of a useful script is, enable;conf t;int vlan 1;ip add dhcp;no shut;end . This is a script that can be used to set an ip address on a switch for the purpose of copy to and from a tftp server. The script will run on all cables that are checked.