Hi
You can pull information from sate view but you can query group using below code
import-module operationsmanager
New-SCOMManagementGroupConnection
$gp=Get-SCOMGroup -DisplayName "operations Manager Agents"
Get-SCOMMonitoringObject -Group $gp |select HealthState,Displayname
Regards
sridhar v