If you are using an older PowerShell version, the best advice is to update PowerShell. If you can’t do this, you can install the PowerShellGet module via a free MSI package here: https://www.microsoft.com/en-us/download/details.aspx?id=51451.
Accessing Free PowerShell Gallery (Part 2)
PowerShellGet is a new free extension for PowerShell that enables you to download and install free extensions and commands. It comes with PowerShell 5, and in the previous tip we explained how you can update it to the latest version.