Powershell: check exit code in writeCommandChecked

Merged username-removed-169030 requested to merge a_a/gitlab-ci-multi-runner:powershell into master

fixes #81 (closed)