By using the powershell script you can keep the Window PC screen awake. The script will open the notepad and print the number.
Simple way is to just copy screenAwake.ps1 and paste in your powershell
Also you can save the file screenAwake.ps1 and call whenever is required
e.g. screenAwake.ps1 30
You can pass the param in minutes(as shown above for 30 mins), if param is not passed it will by default 60 mins.
Option 1: Copy and pasting the script

Option 2: Save the script and call using the powershell
Note: If the execution policy is enabled, then you can use the command
powershell -ExecutionPolicy Bypass -File .\screenAwake.ps1orelse you can directly call the script.\screenAwake.ps1
