lang/ps/ PowerManagement
See which devices can wake the machine
powercfg -devicequery wake_armed
Prevent all HID devices from waking the machine.
powercfg -devicequery wake_armed | select-string -pattern "HID" | foreach { powercfg /devicedisablewake $_ }
Sleeping
There doesn't seem to be a way without disabling hibernation.
powercfg -H off
rundll32 powrprof.dll,SetSuspendState Sleep
(if hibernation is enabled, the machine will hibernate instead of sleeping)