-GetDeploymentStatus is not invoked in a Runspace and RestMessageInspector fails with a null Host.