Powershell Script To Lock Computer After Inactivity, Reasons for the question, Some applications or processes may not behave well with sleep mode.