Windows Event Log
How to write to the event log

Helpful of scripting resources for writing to the Windows event log from your script/application.

logevent.exe Perl PowerShell Python Ruby
Create your own messages
How to start your own message DLL

Scripting
Basic commands
Powershell commands