scheduled task shutdown ,reboot windows server 2012,2016

cmd as administrator
reboot
schtasks /create /tn "Reboot server xxxxx" /tr "shutdown /r /t 0" /sc once /st 23:59:00 /sd 09/09/2020 /ru "System"