Hi,
In order to log an event using a PowerShell script custom action you can follow the solution described in the "
How to Use PowerShell to Write to Event Logs" article. For example, you can add a "Run PowerShell inline script" predefined custom action with the following code:
- New-EventLog -LogName Application -Source "My Script"
Write-EventLog –LogName Application –Source "My Script" –EntryType Information –EventID 1 –Message "This is a test message."
Best regards,
Eusebiu