StayAwake A simple Windows console app that will prevent the system from entering sleep or turning off the display while the application is running. Uses .NET Framework 4.6.1 kernel32.dll via P/Invoke