Go to below link to download PowerNSX.
https://github.com/vmware/powernsx
Download ZIP file.
Extract the folder.
Execute the Script PowerNSXInstaller.ps1 using PowerCLI in your local computer.
Follow the commands to start the installation.
It will automatically go to the MyVMware portal. Enter your MyVMware credentials.
Download PowerCLI installer file.
Execute Installation of PowerCLI.
Follow the steps.
Open PowerCLI from search box, Run as Administrator
Run below command.
Find-Module PowerNSX | Install-Module
Once NSX Modules have been installed, you can run PowerCLI NSX commands to check.
Connect-NsxServer -vCenterServer vcenter.vinsight.com
If you dont have internet, then use below method.
Open link and download nupkg file. https://www.powershellgallery.com/packages/PowerNSX/3.0.1012#manual-download
File Name: powernsx.3.0.1012.nupkg
Extract powernsx.3.0.1012.nupkg
Make sure that PowerNSX.psd1 and PowerNSX.psm1 is in same location.
Run below command to import module.
Import-Module "C:\Users\pranayjha\Downloads\powernsx.3.0.1012\PowerNSX.psd1"