title: Powershell Get-Process string as name
body: <p>When using Get-Process how can I use a string as -Name?</p>
  
  <pre><code>$program = "MyProgram"
  Get-Process $program
  </code></pre>
  
  <p>Instead of</p>
  
  <pre><code>Get-Process -MyProgram
  </code></pre>