I'm trying to make AI agent work on developing Zorro strategy

It runs such powershell command:

Quote

{
"command": "$p = Start-Process -FilePath 'C:\\somepath\\Zorro64\\Zorro64.exe' -ArgumentList 'strategyName+','-train' -PassThru; Start-Sleep -Seconds 8; if ($p -and -not $p.HasExited) { \"Running: PID=$($p.Id)\" } else { $p.Refresh(); \"Exited: PID=$($p.Id) ExitCode=$($p.ExitCode)\" }",
"timeout": 60
}


Building strategy DLL completes (and size matches when doing so in regular ways) but it fails to run.

Status windows writes:

Quote

Error 061: Invalid DLL (strategyName+64.dll: 00-126)


Tried all sorts of shenanigans with setting up working directory, giving AI agent admin privileges - doesn't seem to be it.

Any ideas why it fails to run? What's up with that "00-126" part of message?

Got to be something environment specific.