How does a batch script work?
When you run a batch script, the Windows Command Prompt reads and executes the commands line by line. The Command Prompt opens the .bat or .cmd file and reads it line by line.
Each line is treated as a command or instruc...