title: Visual studio code cmd error: Cannot be loaded because running scripts is disabled on this system
body: <p>Inside of visual studio code, I'm trying to execute a script.bat from the command line, but I'm getting the following error:</p>
  
  <blockquote>
    <p>File C:\Theses_Repo\train-cnn\environment\Scripts\activate.ps1 cannot be loaded because running scripts is disabled on this system.</p>
  </blockquote>
  
  <p>After reading <a href="https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-6" rel="noreferrer">this</a> I tried to run the visual studio code in administrator mode, thinking that the problem was a matter of privileges. But the error is throwing anyway.</p>