I wrote a script and it works:
schtasks /Create /TN "Shutdown 11pm" /TR C:\Windows\System32\nw-SC\Nsd.cmd /SC DAILY /ST 23:01 /RU admin /RP rogue
The task gets created but will not run. I'm thinking that the "/RU admin" should read /RU [hostname]/admin. I tried,
/RU %hostname%\admin. The task will not get created.
Thanks in advance