A script is a collection of instructions and expressions in a certain scripting language. It instructs machines to perform certain actions, or provides functions to a program or machine.
Generally, tasks created like this are automated and can and run either without or with minimal user input and prompting. A program or user might launch a script in order to run through a series of tasks – assuming nothing stops it from completing, the script will run its course automatically.