PowerShell's default security level will only run signed scripts. The execution policy can be changed.
Error Message: “Cannot be loaded because the execution of scripts is disabled on this system. Please see "get-help about-signing".
PowerShell's default security policy will only run signed scripts. Client’s rarely have the software and external credentials required to sign script files. The alternative is to change PowerShell’s execution policy.
Change PowerShell’s Execution Policy
Set-ExecutionPolicy Restricted <-- Will not allow any powershell scripts to run. Only individual commands may be run. Set-ExecutionPolicy AllSigned <-- Will allow signed powershell scripts to run. Set-ExecutionPolicy RemoteSigned <-- Allows unsigned local script and signed remote powershell scripts to run. Set-ExecutionPolicy Unrestricted <-- Will allow unsigned powershell scripts to run. Warns before running downloaded scripts. Set-ExecutionPolicy Bypass <-- Nothing is blocked and there are no warnings or prompts.
Set-ExecutionPolicy -ExecutionPolicy Bypass
Show Execution Policy
https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/unblock-file?view=powershell-7.3 Unblocks files that were downloaded from the internet. or another computer.