HOWTO Manage PowerShell ExecutionPolicy mechanism
PowerShell has a mechanism called ExecutionPolicy that restricts running of unsigned scripts. This is intended to protect users from running malicious scripts.
There are situations in which such scripts need to be run. This HOWTO explains the various options that are available focusing on staying secure.
More information on the ExecutionPolicy is available at: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-7.1