A batch file is classified with 3 filename extensions; .bat .cmd .btm
(warning: neither of these can work in older windows systems, prefer .bat)
Implemented since MS-DOS, it is pre-built on multiple windows systems and has its counterparts from other Operating Systems i.e BASH in Linux.
it is designed to compress list of commands executed by the cmd (Command Prompt) hence streamlining the need of repeating computing tasks.
It shares syntax (or similarities) from scripting languages that derived from minicomputers such as JCL, DCL (maybe BASIC). some of the syntax that batch borrowed are either redundant or acceptable in standards of modern programming.
Batch has many sources to learn it from, simply google it but don't make it as your serious primary language.