As our team makes more and more complex scripts and trigger actions, we were called on to write to the windows event log a custom entry. This is the base code needed to use powershell to write to a custom windows event log.
You will have to run this command to tell Windows that you are creating a new log source
New-EventLog -LogName Application -Source [Your New Source Name Here]
Requires Powershell Version 3 or above