Problem with shutdown -r command

I needed help with the “at blah shutdown -r” command. I want the comp to restart at 2 in the night. But it hangs on the screen which says windows is shutting down. It happens only in the night. Not when I try restarting any other time. I use a batch file at startup to execute the command…

use /f to force all apps to close too . Use this instead

Download Daxtar’s Shutdown Timer 1.0.7 - Daxtar’s Shutdown Timer is a minimalistic tool to schedule your System’s Shutdown via GUI or comand-line. - Softpedia

I used force command too… Didn’t work. Will check out the link

another way to do it will be:

create a batch file with only “shutdown -r” in it.

from scheduled tasks, schedule the above created file to execute at 2.00 am.

try this,.it has always worked for me.