if (Test-Path Env:\APPVEYOR) {
    $version = (Get-Content -Raw -Path package.json | ConvertFrom-Json).version
    Start-Process $PSScriptRoot\dist-win32.bat $version
} else {
    "Not running in AppVeyor. Exiting."
}
if (Test-Path Env:\APPVEYOR) {
    $version = (Get-Content -Raw -Path package.json | ConvertFrom-Json).version
    cmd /c "$PSScriptRoot\dist-win32.bat $version"
} else {
    "Not running in AppVeyor. Exiting."
}
Revert "Attempted fix for Appveyor "error""
Revert "Attempted fix for Appveyor "error""

This reverts commit b750ac1c3ed08fe074ee15f14d255bcfd19a4e6f.
