How to write Events to specific Task Scheduler EventLog with Powershell
I created a powershell script (AD-Mapping) which runs as scheduled task. Inside this script I want to check for different errors which I would like to write in the EventLog which is automatically created with the task visible inside the tab history.