Today I am going to show you how to create a simple script that will shutdown you’re computer. First of all it works just on Windows first of all open notepad and write the code above
shutdown -s -t [xx]
first of all replace the [xx] with a value in seconds by example 30 and then save the file with extension .bat a very important aspect, the name can by whatever you want.