if ($operation -eq 'pwd') { if ($toolArgs.Count -ne 0) { Fail 'pwd accepts no arguments on Windows routes' 2 } [Console]::Out.WriteLine((Resolve-UnideskPath '.')) exit 0 }