#Requires -Version 5.1 Set-StrictMode -Version Latest $ErrorActionPreference = 'Stop' # Shim: delegates to the Python ci_orchestrator CLI. # Original PS implementation moved to git history; see plans/A2-closeout.md. $pyArgs = @() foreach ($a in $args) { if ($a -is [string] -and $a.Length -gt 1 -and $a.StartsWith('-') -and -not $a.StartsWith('--')) { $name = $a.Substring(1) $kebab = [Regex]::Replace($name, '(?<=[a-z0-9])([A-Z])', '-$1') $kebab = [Regex]::Replace($kebab, '([A-Z]+)([A-Z][a-z])', '$1-$2') $pyArgs += '--' + $kebab.ToLower() } else { $pyArgs += $a } } $venvPython = $env:CI_VENV_PYTHON if (-not $venvPython) { $venvPython = 'F:\CI\python\venv\Scripts\python.exe' } & $venvPython -m ci_orchestrator vm remove @pyArgs exit $LASTEXITCODE