Translate TRAVIS_TEST_RESULT logic to PowerShell