title: Powershell to unblock all the files in a folder
body: <p>Trying to make a .bat I can drop in a folder, when run it will unblock all the files in that folder...</p>
  
  <pre><code>@ECHO OFF
  PowerShell.exe -NoProfile -ExecutionPolicy Bypass -Command "&amp; {get-childitem '%~dp0' | unblock-file}"
  EXIT
  </code></pre>
  
  <p>...keeps telling me "The term 'unblock-file' is not recognized as the name of a cmdlet..." no matter how I try to format it, where am I going wrong?</p>
  
  <p>I'm trying to do this so I can just copy the .bat to the folder (and NOT have to copy a .bat and .ps1) so I thought a 1-line powershell "call" was the way to go?</p>