The definition of script

A script is a series of OS commands. The term "batch file" means much the same thing, but is a bit dated. Typically the same sort of situations in which one would say DOS instead of OS, it would also be appropriate to say batch file instead of script. Scripts can be run like programs, but tend to perform simpler tasks. When a script is run, it is always interpreted.