title: execution policy error while calling powershell script from batch file, powershell v 1.0
body: <p>I have created a PowerShell script to get files from a subfolder. This executes when I run from the PowerShell console after manually entering <code>Set-ExecutionPolicy unrestricted</code>, but when I call the same script from a batch file</p>
  
  <pre><code>C:\Windows\System32\WindowsPowerShell\v1.0\PowerShell.exe D:\programs\abc\bin\xyz_clean.ps1
  </code></pre>
  
  <p>it throws an error:</p>
  
  <blockquote>
    <p>xyz_clean.ps1 cannot be loaded because the execution of scripts is disabled on this system.</p>
  </blockquote>