Trying to run a command in NodeJS that simply puts my computer to sleep, but the command ended up hibernating it?
exec("rundll32.exe powrprof.dll, SetSuspendState Sleep");
By sleep I mean, when I wake it up, it instantly comes back to the Windows User Login screen, however when I used the command above, when I woke the computer back up, it came back to the BIOS screen. My session was still saved but I want it to instantly go to the Windows User Login screen, so I think it actually hibernated my computer.
What's the correct command to get it to sleep properly?