Out-GridView requires .NET Framework 3.5 Service Pack 1. If you are running Windows Server 2008 R2, you must use Server Manager ...

Out-GridView requires .NET Framework 3.5 Service Pack 1. If you are running Windows Server 2008 R2, you must use Server Manager to install or configure ".NET Framework 3.5.1". For other Windows operating systems, please install .NET Framework 3.5.1 from: http://go.microsoft.com/fwlink/?LinkId=124150. After .NET Framework 3.5.1 is installed, close all Windows PowerShell windows, and then open a new Windows PowerShell window to use the Out-GridView cmdlet.