Bug setting execution policy

Fixes System.Management.Automation.CmdletInvocationException: Access to
the registry key
'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell'
is denied. ---> System.UnauthorizedAccessException: Access to the
registry key
'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell'
is denied.
at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)
at Microsoft.Win32.RegistryKey.CreateSubKeyInternal(String subkey,
RegistryKeyPermissionCheck permissionCheck, Object registrySecurityObj,
RegistryOptions registryOptions)
at Microsoft.Win32.RegistryKey.CreateSubKey(String subkey,
RegistryKeyPermissionCheck permissionCheck)
at Microsoft.Win32.RegistryKey.CreateSubKey(String subkey)
at
System.Management.Automation.SecuritySupport.SetExecutionPolicy(ExecutionPolicyScope
scope, ExecutionPolicy policy, String shellId)
at
Microsoft.PowerShell.Commands.SetExecutionPolicyCommand.ProcessRecord()
at System.Management.Automation.Cmdlet.DoProcessRecord()
at System.Management.Automation.CommandProcessor.ProcessRecord()
--- End of inner exception stack trace ---
at
System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable
input)
at System.Management.Automation.RunspaceInvoke.Invoke(String script,
IEnumerable input)
at PowerShellActions.PowerShellTask..ctor(String file, String arguments,
Session session)
at PowerShellActions.CustomActions.PowerShellFilesDeferred(Session
session)
v1.3