title: How do I automatically choose "No" when Remove-Item prompts for confirmation?
body: <p>When using PowerShell's <code>Remove-Item</code> to remove a directory that is not empty, it will prompt for confirmation:</p>
  
  <pre><code>PS C:\Users\&lt;redacted&gt;\Desktop\Temp&gt; Remove-Item .\Test
  
  Confirm
  The item at C:\Users\&lt;redacted&gt;\Desktop\Temp\Test has children and the Recurse parameter was not specified. If you
  continue, all children will be removed with the item. Are you sure you want to continue?
  [Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"):
  </code></pre>
  
  <p>If I run powershell in non-interactive mode, I get an error instead:</p>
  
  <pre><code>Remove-Item : Windows PowerShell is in NonInteractive mode. Read and Prompt functionality is not available.
  At line:1 char:1
  + Remove-Item .\Test
  + ~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : InvalidOperation: (:) [Remove-Item], PSInvalidOperationException
      + FullyQualifiedErrorId : InvalidOperation,Microsoft.PowerShell.Commands.RemoveItemCommand
  </code></pre>
  
  <p>I know that I can use <code>-Recurse</code> to have <code>Remove-Item</code> proceed as if I had chosen the "Yes" option. Can I somehow proceed as if I had chosen the "No" option?</p>
  
  <p>(Just for clarity: <code>-Force</code> and <code>-Confirm:$false</code> are not what I want here.)</p>