I was asked a question about how to write to the Windows Event Log in a script following my TechNet session yesterday evening. Using the Windows Scripting Host wscript.shell object, the LogEvent method provides one way of achieving this. There are lots more, most far more involved though!

Further information for this method call is at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/wsmthlogevent.asp