In a nutshell, it is a script file used to automate tasks in DOS, Windows, and OS/2 operating systems.
Otherwise, you would have to run the commands which I guess won’t make you happy. If a developer wants to use the command prompt on your machine while installing software, he can do so by including a batch file in the setup files. If you have created a batch file for the shutdown operation, you’ll only have to double-click to run it, like you usually open applications, and your Windows will shut down after the time you have already set.