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
Install the appropriate version of PowerShell for your OS: