The script writes events to the Windows Eventlog. These are the event codes used:
||Success. The script has been run successfully.
||Success. The script has been installed successfully to the Windows scheduler.
||Invoke-WebRequest failed. The URL requested did not return a http 200 return code. Instead it failed to fetch the file from the server. This happens normaly with an http 404 or 400 return code.