Use SetConsoleTitle on Windows, instead of an Event. Also update test to run on Windows using some PowerShell commands.