Identify pwsh/posh process

Product: PowerShell Universal
Version: 4.2.8

Occasionally see one of my api endpoints using a lot of CPU or RAM and was looking for a decent way to identify what endpoint the pwsh process belongs to similar to how you can get this information for running apps/dashboards.

If anyone has any tips I’d appreciate it, thanks

This is how I search for PSU jobs:

Get-CimInstance Win32_Process -Filter "ProcessId<>$PID AND ( Name='Universal.Server.exe' OR ( ( Name='pwsh.exe' OR Name='powershell.exe' ) AND CommandLine LIKE '%UniversalHost%' ) )"