Functions/Update-InstalledModule.ps1
function Update-InstalledModule { [CmdletBinding()] param ( ) $excludeList = "Az.|Microsoft.Graph.Beta." Get-InstalledModule | Where-Object Name -NotMatch $excludeList | ForEach-Object { Write-Output $_.Name Update-Module $_.Name -AcceptLicense -Scope AllUsers } } |