Search notes:
PowerShell: script cannot be loaded because running scripts is disabled on this system
PS C:\> .\some-script.ps1
The shell responds with
some-script.ps1 cannot be loaded because running scripts is disabled on this system …
PS C:\> set-executionPolicy remoteSigned
This time, the shell answers with
PS C:\> Access to the registry key 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell' is denied.
PS C:\> set-executionPolicy remoteSigned -scope currentUser
And this now works, the shell says
HKCU\Software\Microsoft\Powershell\1\ShellIds\Microsoft.PowerShell value of `ExecutionPolicy` was set to `RemoteSigned`.
The script can now be run.