By default, PowerShell’s security level is set to run signed scripts only. You can change this by using Set-ExecutionPolicy command (remember about admin privileges):
All signed powershell scripts will allow to run.
Option for run unsigned local and signed remote scripts.
Allow to run unsigned PowerShell scripts. Before running the script, a warning will appear.
Everything is allowed to run, without any notifications or warnings. Use with caution.
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process
Enable to run PowerShell scripts in the current session.
If you want to go back to default settings and not allow running any PowerShell script, use this command