To solve this issue, try the following.
Fix “Access to the registry key is denied” Error When Setting Policy For PowerShell Scripts
How to solve a problem where you get an "Access to the registry key" error when trying to change the policy for PowerScript execution.