Sometimes you have to hunt around for a particular server that has GPMC installed.

In the below example, we’re looking for servers that are running 2012+

  
import-module activedirectory
  
$computers = get-adcomputer -filter {OperatingSystem -like "\*2012\*R2*"}
  
foreach ($pc in $computers)
      
{
      
$name = $pc.Name
      
if (test-connection $pc.name -quiet -count 1)
          
{
          
if (test-path "\\$name\c$\Windows\System32\gpmc.msc")
              
{
              
write-host -foregroundcolor green $pc.name " Has gp console and is up!"
              
}
          
}
      
}