open notepad, paste the following
@echo off
shutdown -s -t 100
//this will shutdown your computer in 100 seconds, you can change the time to zero(0) for
instant shutdown
//Then Ctrl+S to save the file and at the bottom {save as type:} click on "All files(*.*)"
//And in {File name:} type "shutdownfilename.bat" the .bat is the batch file extension
//Choose where to save And click save. just double click to run at will