function getStatus($server, $service){
   Get-WmiObject Win32_Service -Filter "Name Like 'spooler'" -computer SERVER1 -credential $cred | select Name, State, StartMode, StartName
}