title: Hide Write-Host outputs
body: <p>I am editing a script which I need to convert to exe. It has a few <code>Write-Host</code> outputs of the status of the script when running. This causing the exe of the script to show up dialog boxes to the user forcing them to click OK 3 or 4 times before the script finishes.</p>
  
  <p>I'd like to keep the <code>Write-Host</code> output but just hide them (the dialog boxes) when the end user executes it from the exe.</p>
  
  <p>Is this possible? I have looked into <code>[void]</code> which the code doesn't like. The only other way I can get to work is just commenting it out with <code>#</code>, but I'm sure there's a better way.</p>
  
  <p>Example of what I want hidden/suppressed:</p>
  
  <pre><code>Write-Host "Current Status = " $status
  </code></pre>