Execution policies are only meaningful on computers running Windows.
In non-Windows environments, the execution policy defaults to unrestricted and cannot be changed.
Typical error messages
Typical error messages that are encountered with a «too restrictive» policy include
File … cannot be loaded because running scripts is disabled on this system
The … command was found in the module …, but the module could not be loaded.
…(?)
Example
PS C:\Users\rene> .\create-zip.ps1
. : File C:\Users\rene\create-zip.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see
…
…
PS C:\Users\rene> set-executionPolicy -scope process -executionPolicy bypass
PS C:\Users\rene> write-host $env:PSExecutionPolicyPreference
Bypass
PS C:\Users\rene> .\create-zip.ps1
…