title: -debug requesting confirmation
body: <p>I have a simple script running in Powershell 3.0 :</p>
  
  <p><code># Testing write-debug
  [CmdletBinding()]
  param()
  write-debug "Debug message"
  Write-Output "General output"</code></p>
  
  <p>When I run it without parameters, I get the desired output:</p>
  
  <pre><code>PS C:\scripts\Test&gt; .\debugtest.ps1
  General output
  </code></pre>
  
  <p>When I run it with the <code>-debug</code> parameter, Powershell asks me to confirm after printing the Debug message:</p>
  
  <pre><code>PS C:\scripts\Test&gt; .\debugtest.ps1 -Debug
  DEBUG: Debug message
  
  Confirm
  Continue with this operation?
  [Y] Yes  [A] Yes to All  [H] Halt Command  [S] Suspend  [?] Help (default is "Y"):
  General output
  </code></pre>
  
  <p>Why am I being asked to confirm? Shouldn't <code>write-debug</code> simply write the debug output and continue with the script?</p>
  
  <p>Update: <code>$DebugPreference</code> is set to <code>SilentlyContinue</code>:</p>
  
  <pre><code>PS C:\scripts\Test&gt; $DebugPreference
  SilentlyContinue
  PS C:\scripts\Test&gt; .\debugtest.ps1 -Debug
  DEBUG: Debug message
  
  Confirm
  Continue with this operation?
  [Y] Yes  [A] Yes to All  [H] Halt Command  [S] Suspend  [?] Help (default is "Y"):
  General output
  </code></pre>