title: Test if executable is in path in PowerShell
body: <p>In my script I'm about to run a command</p>
  
  <pre><code>pandoc -Ss readme.txt -o readme.html
  </code></pre>
  
  <p>But I'm not sure if <code>pandoc</code> is installed. So I would like to do (pseudocode)</p>
  
  <pre><code>if (pandoc in the path)
  {
      pandoc -Ss readme.txt -o readme.html
  }
  </code></pre>
  
  <p>How can I do this for real?</p>