Batch file

A batch file is a script file for DOS, OS/2 and Microsoft Windows. It is a plain text file of commands run by the command-line interpreter and can use conditional branching and looping constructs such as IF, FOR and GOTO.

Reference
Wikipedia article