$ErrorActionPreference = "Stop" $scriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path $projectRoot = Resolve-Path (Join-Path $scriptDir "..") Push-Location $projectRoot try { go run ./cmd/export_sql @args } finally { Pop-Location }