Code for PowerShell Scripting Games events.