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