Windows Powershell Script Enable or Disble
Windows Enable Powershell Scripts
List Policy
get-executionpolicy -list

Allow Remote Signed
Set-ExecutionPolicy RemoteSigned
Allow for current user
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Allow for Local Machine
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine
Set unblock on specific file
Unblock-File -path .\CreateTestFiles.ps1
Re-enable block of scripts
Set-ExecutionPolicy undefined