@ddo Fortunately I have just tried doing something like that using the Windows task planer and it worked:
schtasks /create /tn "MyTask" /sc once /st 23:00 /tr "C:\path\to\program.exe parameters" /ru "domain\username" schtasks /run /tn "MyTask" schtasks /delete /tn "MyTask" /fThough you might need to come up with some more scripting to find out the user being logged on to the machine at the moment. Should be possible to do but I haven’t figured it out myself yet.