So today I will tell you how to shutdown your pc with a bat file
Open the notepad and type "shutdown-s -t 45".
"shutdown-s" it is the command to shutdown the pc.
"-t 45" it is the time it take before the shutdown.
After you type the command got to "file" then "Save as.."
Type a name for the bat file and at the end type ".bat"
Example
After you saved the file go to the saved location and click on the bat file then the pc should shutdown in less than a minute.