How to set execution policy in PowerShell quietly, without asking?
<p>I'm running the following command.</p>

<pre><code>Set-ExecutionPolicy -ExecutionPolicy Bypass
</code></pre>

<p>It asks me if I'm sure and if I yes it, it sets the policy just as supposed to. I wonder, however, how I'm supposed to execute the command so that the computer doesn't ask me to confirm.</p>

<p>I've googled the issue and there's a flag <a href="https://msdn.microsoft.com/en-us/powershell/reference/5.1/microsoft.powershell.security/set-executionpolicy" rel="noreferrer"><em>-Confirm</em></a> but using it produces an additional confirmation request. What would be the opposite of it, i.e. something like this (quacky typo intended)?</p>

<pre><code>Set-ExecutionPolicy -ExecutionPolicy Bypass -JustDoWhatWeTellYouForDucksSake
</code></pre>