title: enable Write-Verbose behavior in powershell script
body: <p>In a powershell script <code>file.ps1</code>, I have</p>
  <pre class="lang-powershell prettyprint-override"><code>Write-Host &quot;here is a host message&quot;
  Write-Verbose &quot;here is a verbose message&quot;
  </code></pre>
  <p>When <code>file.ps1</code> is run in Windows Terminal using Powershell 7, not all messages are written to the console.</p>
  <pre class="lang-text prettyprint-override"><code>PS&gt; .\file.ps1
  here is a host message
  </code></pre>
  <p>I would like to be able to pass <code>-Verbose</code> so <code>Write-Verbose</code> is seen:</p>
  <pre class="lang-text prettyprint-override"><code>PS&gt; .\file.ps1 -Verbose
  here is a host message
  here is a verbose message
  </code></pre>
  <p>What does script <code>file.ps1</code> need to enable verbose messages?</p>