Im getting the following error when trying to run hosted powershell scripts before upgrading from Windows 7 I never got this error.
The following erro
above answer did not work for me, i fixed the problem by removing the %APPDATA%..\Local\Microsoft\VisualStudio\ folder.
Upon restarting VS this folder is recreated and the package manager console works again. A little crude but it does the job.