I had the same problem. This is how I solved it:
-
Open the PowerShell as Administrator and activate script execution with the command
Set-ExecutionPolicy Bypass. -
Install the
Install-Layerscript. -
Make sure to deactivate this bypass after having the script installed via
Set-ExecutionPolicy Restricted.
Hope this helps.