Powershell to remove grey object from console

has anyone created a scom task using powershell that would remove the grey-state object from the mgmt console? my thought was to add a task to the health service object target so that when a failed to connect is triggered, the powershell task could be launched from squaredup that would remove the grey-state object from the mgmt console which would then auto resolve the failed to connect alert and prevent it from triggering again. thanks in advance!