Notepad is a free Windows text editor that you can use to edit program codes. You can enter some simple Windows commands in Notepad to create a file that will shutdown your computer. Create such a file to quickly shut down your computer or just make fun of someone.
Steps

Step 1. Open Notepad
This free text editing program is included with all versions of Windows. In Notepad, you can write the simplest code that turns off your computer.
To open Notepad, click Start> Programs> Accessories> Notepad. Alternatively, you can click Start, type notepad, and press ↵ Enter

Step 2. Enter shutdown.exe -s on the first line
This is a command to shutdown the computer.

Step 3. Add a timer using the -t option
By default, the computer will shutdown after 30 seconds. To change this time, add the -t parameter, and then enter the number of seconds.
- For example, to shutdown the computer after 45 seconds, enter shutdown.exe -s -t 45.
- To shut down the computer immediately, enter shutdown.exe -s -t 00.

Step 4. Add your message
To display a message on the computer before the computer shuts down, use the -c option. For our example, enter shutdown.exe -s -t 45 -c "message text". The text must be enclosed in quotation marks.
For example, you can specify in the message how long the computer will turn off; to do this, enter shutdown.exe -s -t 45 -c "The computer will shutdown in 45 seconds."

Step 5. Click File> Save As
The file must be saved in the BAT format (batch file), the launch of which will turn off the computer.

Step 6. Open the Save as type menu and select All Files (*
*) ". Now you can change the file type.

Step 7. Remove the.txt extension at the end of the file name
Enter.bat instead.
If the extension (in the form of three letters) does not appear, look online for information on how to do it

Step 8. Save the file
Bat file will be created; the icon for this file will be different from the icon for the text file.

Step 9. Run the created file to turn off the computer
The shutdown process will take place in accordance with the rules that you have set.