how to set your laptop to shut down after a certain time code example
Example 1: windows shutdown command timer
shutdown -s -t SECONDS
Example 2: how to turn off pc at specific time
shutdown -s -t <TimeInSeconds>
shutdown -s -t SECONDS
shutdown -s -t <TimeInSeconds>