Removes extra 'ERROR' in text where the `error` method is used. Converts some `write-host "error message"` to use the `error` method Converts some `write-host "error message"; exit 1` to use the `abort` method.
* Use fixed path to cmd.exe * Use $env:COMSPEC instead of $env:WINDIR