Is there an equivalent in powershellto
powercfg -requests
listing the processes preventing the sleeping ?
Thanks