Need help powershell : Need help in sorting out a data from my output and then display 'ALL OK' or 'NOT OK'.
Invoke-Command -ComputerName XXXXX,XXXX -ScriptBlock { hastatus -sum; VXPRINT -VPl } -credential XXXXX

-- SYSTEM STATE
-- System               State                Frozen              

A  XXXXXXXXXXXXX        RUNNING              0                    
A  XXXXXXXXXXXXX         RUNNING              0      


Once i get this output, I want to showonly a output saying ALL OK when STATE is RUNNING and if the STATE is Faulted or anyother string then say NOT OK.. Please help