allow execution of a specific script code example
Example 1: powershell enable scripts
Set-ExecutionPolicy unrestricted
Example 2: PSSecurityException
set-executionpolicy remotesigned
Set-ExecutionPolicy unrestricted
set-executionpolicy remotesigned