$ErrorActionPreference = 'Stop' $root = Split-Path -Parent (Split-Path -Parent $MyInvocation.MyCommand.Path) $standalone = Join-Path $root 'standalone' Push-Location $standalone try { go run . } finally { Pop-Location }