I need a script to make the Wake On LAN (this is already what I have) and has even spent a specified time (for example 1 hour) and has not been logged, which turns off the computer.

Legacy Forum Name: Wake On Lan and Shutdown if not logged,
Legacy Posted By Username: 9Tres