Troubleshooting PSU-Endpoint that consumes 100% CPU when executing an external command

I have several API endpoints that execute certutil.exe, certreq.exe and openssl.exe; all functioning without issue.

However, as soon as I execute certutil.exe -CRL within the logic of an endpoint, the CPU usage of the respective pwsh.exe thread goes to 100%.

When I execute the same command in a normal powershell or pwsh session, the command executes without issue.

It does not seem to make any difference if I execute the command synchronously or asynchronously (& certutil.exe [...] vs & certutil.exe [...] &)

What would be an effective way to troubleshoot what is happening here?

Product: PowerShell Universal
Version: 2.7.0

Humble bump.

Anyone can help?

Don’t know squat that could help you, but I think maybe thats what the new Profiler feature could help with?
Profiling - PowerShell Universal