Job 1788161498465

Command: powershell -NoProfile -Command "$root='C:\Users\ash\Documents\Codex\2026-08-26\LaptopBridge-DEV';$conns=@(Get-NetTCPConnection -LocalPort 8766 -State Listen -ErrorAction SilentlyContinue);$pids=@($conns|Select-Object -ExpandProperty OwningProcess -Unique);$items=@();foreach($pid8766 in $pids){$p=Get-CimInstance Win32_Process -Filter ('ProcessId='+$pid8766) -ErrorAction SilentlyContinue;$par=$null;if($p){$par=Get-CimInstance Win32_Process -Filter ('ProcessId='+$p.ParentProcessId) -ErrorAction SilentlyContinue};$items += [pscustomobject]@{pid=$pid8766;name=$p.Name;path=$p.ExecutablePath;cmd=$p.CommandLine;ppid=$p.ParentProcessId;parent_name=$par.Name;parent_cmd=$par.CommandLine}};$related=@(Get-CimInstance Win32_Process|Where-Object{$_.CommandLine -like '*dev_bridge_launcher.py*' -or $_.CommandLine -like '*LaptopBridge-DEV*'}|Select-Object ProcessId,ParentProcessId,Name,ExecutablePath,CommandLine);$health='';try{$r=Invoke-WebRequest -UseBasicParsing 'http://127.0.0.1:8766/health' -TimeoutSec 2;$health='HTTP '+$r.StatusCode+' '+$r.Content.Trim()}catch{$health='FAIL '+$_.Exception.GetType().Name+' '+$_.Exception.Message};$err=Join-Path $root 'bridge-data\dev-bridge.stderr.log';$out=Join-Path $root 'bridge-data\dev-bridge.stdout.log';[pscustomobject]@{listeners=$items;related=$related;health=$health;stderr=(if(Test-Path $err){(Get-Content $err -Tail 40)-join '\n'}else{''});stdout=(if(Test-Path $out){(Get-Content $out -Tail 40)-join '\n'}else{''});prod8765=@(Get-NetTCPConnection -LocalPort 8765 -State Listen -ErrorAction SilentlyContinue|Select-Object -ExpandProperty OwningProcess -Unique)}|ConvertTo-Json -Depth 6 -Compress"
Directory: projects
Status: FAILED
Exit code: 1

Cancel Job Rerun Command Refresh

Error Summary

+ ... @{listeners=$items;related=$related;health=$health;stderr=(if(Test-Pa ...
+                                                                ~~
    + CategoryInfo          : ObjectNotFound: (if:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
 
---
+                                                                ~~
    + CategoryInfo          : ObjectNotFound: (if:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
 
---
if : The term 'if' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the 
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1293
+ ... @{listeners=$items;related=$related;health=$health;stderr=(if(Test-Pa ...
+                                                                ~~
    + CategoryInfo          : ObjectNotFound: (if:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException