If you want to shut down your Windows 10 computer with time, you can do the following.
You can perform your operation in two moves with a very simple key combination.
Open the run screen by pressing the Windows key + R.
Type shutdown -s -t 600 on the line and press enter. (600 means time, you can change it for yourself.)
The number 600 indicates 600 seconds. This indicates 10 minutes. If you type 1200, it turns off after 20 minutes.
If you last press the OK button, your computer will be set to timed shutdown.
In this way, you can set your computer to shut down timed, and even if you forget, you can have your computer shut down automatically.