Command to put computer to sleep

Windows:

rundll32.exe powrprof.dll,SetSuspendState 0,1,0

Linux:

systemctl suspend

Links to this note