CoreePower.Lib.Initialize.PackageManagement.ps1
function Initialize-PackageManagement { [Diagnostics.CodeAnalysis.SuppressMessage("PSUseApprovedVerbs","")] param ( [ModuleScope]$Scope = [ModuleScope]::CurrentUser ) # Check if the current process can execute in the desired scope if (-not(CanExecuteInDesiredScope -Scope $Scope)) { return } $originalProgressPreference = $global:ProgressPreference $global:ProgressPreference = 'SilentlyContinue' Update-ModulesLatest -ModuleNames @("PackageManagement") -Scope $Scope | Out-Null $global:ProgressPreference = $originalProgressPreference } |