Don't forget to search the forum...
Execute a Script in Terminal
For more information, see the wiki Searching the Forum for Answers section.