title: Powershell get-process query
body: <p>I want to write a simple If Statement which checks if an Process Exists.
  If it Exists, something should start.</p>
  
  <p>Like this, but working.. ;)</p>
  
  <pre><code>If ((Get-Process -Name Tvnserver.exe ) -eq $True)
  { 
      Stop-Process tnvserver
      Stop-Service tvnserver
      Uninstall...
      Install another Piece of Software
  }
  Else
  {
      do nothing
  }
  </code></pre>
  
  <p>Thanks</p>