title: How to check different services on different servers in powershell scripting?
body: <pre class="lang-powershell prettyprint-override"><code>$c = Get-Content D:\Users\vbaranwa\Desktop\vb.txt
  for ($i = 0; $i-le $c.count; $i++) {
    $a = ($c)[$i]
    Get-Service -ComputerName $a -Name Power | select Name, MachineName, Status 
  }
  </code></pre>
  
  <p>This is working if the services are same but if there are different services to check then how it can be done?</p>