Could this module be made to work in powershell 7? It fails when creating the runspace pool.
$RunspacePool.ApartmentState = 'STA' is unrecognized. If I comment out that line the function works as expected, but the the ping tests are displayed in the console and in write-progress.
The actual exception message is... The property 'ApartmentState' cannot be found on this object. Verify that the property exists and can be set.