1. Press Windows key + R to launch Run command dialog.
2. In the Run column, write: shutdown -s -t TimeInSecond
For example if you want to set shutdown in 10 minutes, you must write:
shutdown -s -t 600 Click Ok or press Enter.
3. Then will get notify that Windows will shutdown in (10) minutes. click close.
This method can also be used for previous Windows.