Private/Helpers/Get-InstalledModuleInfo.ps1
|
function Get-InstalledModuleInfo { # Returns the highest locally-installed version of $Name, or $null if not found. param([string]$Name) return Get-Module -Name $Name -ListAvailable -ErrorAction SilentlyContinue | Sort-Object -Property Version -Descending | Select-Object -First 1 } |