If you attempt to execute a PowerShell script on the SharePoint server and see : “Script cannot loaded. The file is not digitally signed. The script will not be executed on the system” or “… the execution of the script is disabled on the system…”
It means you either need to :
Set the PowerShell execution policy to allow you to execute unsigned scripts, e.g.
If you want to make changes to a PowerShell script but you are always prompted to save as a new version, the file may be locked. Right click the script file and select Properties. Ensure the Read-Only checkbox is unchecked. If there is a Unblock button next to the Read Only property, click Unblock.