$ErrorActionPreference = "Stop" Push-Location "$PSScriptRoot\.." try { npm install npm run dist } finally { Pop-Location }