https://learn.microsoft.com/en-us/dotnet/api/system.management.automation.runspaces.runspacepool.getrunspacepools?view=powershellsdk-7.4.0
RunspacePool.GetRunspacePools Method (System.Management.Automation.Runspaces) | Microsoft Learn
Queries the server for disconnected runspace pools and creates an array of runspace pool objects associated with each disconnected runspace pool on the server....
system managementmethodautomationmicrosoftlearn