Powershell write to eventlog

http://blogs.technet.com/b/heyscriptingguy/archive/2013/06/20/how-to-use-powershell-to-write-to-event-logs.aspx

Step 1: Create event source which will be used to write events:

New-EventLog -LogName Application -Source "Acme"

Step 2: Write events

Write-EventLog -LogName Application -Source "Acme" -EntryType Information -EventId 1 -Message "Hello World"

Step 3: Check logs

Get-EventLog -LogName Application -Source "Acme"