PowerShell modules: loaded vs. available
The Get-Module cmdlet lists all modules that are available on the current computer to the current user. Whereas the Get-InstalledModule cmdlet lists all modules that were installed using Install-Module on a local computer. The difference in performance comes from the second command needing to inspect each available module to check whether it was installed or…