;Task: Write script status to the Windows Event Log