Files
GacUI/.github/Scripts/copilotDebug_RunCommand.ps1
T
2026-04-21 00:30:18 -07:00

15 lines
397 B
PowerShell

param(
[string]$Command = $null
)
if ([string]::IsNullOrEmpty($Command)) {
throw "\$Command parameter is required."
}
. $PSScriptRoot\copilotShared.ps1
$cdbpath = GetCDBPath
$debuggerNamedPipe = GetDebuggerNamedPipe
$commandLine = "echo .remote_exit | `"$($cdbpath)`" -remote npipe:server=.,pipe=$debuggerNamedPipe -clines 0 -c `"$Command`""
echo $commandLine
cmd.exe /S /C $commandLine