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