This runs the powercfg commands to see what's causing a computer to exit sleep or hibernate states
This is the file with the commands. This requires administrator privileges to run and will provide a UAC prompt for administrator privileges if needed.