You can create a batch file with this line:

Code: 
shutdown -s -f -t 01
Save it anywhere you like and then schedule it to run at a particular time using the Windows Task Scheduler.

This will shutdown the pc after a 1 seconds delay, forcing any open programs to close in the process.