In a batch file, schecule DOS command shutdown. Use shutdown /? for specifics. Use net stop to kill services before hand if you wish. Use task scheduler to schedule the execution of the batch file.
KB102136
Restart Batch File
The following one line batch file restarts a Windows computer. You can use this to restart your Windows based computers.
shutdown /f /r /d p:"Nighly Batch Restart" /t 00
Remember, you can use the following help command to refine this command:
shutdown /?
Restart Exchange Server Batch File
The following batch file first stops the Exchange Server services, then restarts.
net stop "Microsoft Exchange Information Store" /y net stop "Microsoft Exchange System Attendant" /y net stop "Microsoft Exchange IMAP4" /y net stop "Microsoft Exchange Routing Engine" /y net stop "Microsoft Exchange POP3" /y net stop "Microsoft Exchange Management" /y