Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagepowershell
$Modules, $BaseModule$PrerequisiteModules = (Get-Module -Name "$Name.*").Where({$_.Name -notin $PrerequisiteModuleNames},[System.Management.Automation.WhereOperatorSelectionMode]::Split)

...

Code Block
languagepowershell
$Modules | ForEach-Object { Remove-Module -Name $_.Name -Force };
$BaseModule$PrerequisiteModules | ForEach-Object { Remove-Module -Name $_.Name -Force }

...