ImpactPartnership-PS.psm1
$AzureADModule = Get-Module -Name AzureAD -ListAvailable $BurntToastModule = Get-Module -Name BurntToast -ListAvailable If ($AzureADModule -eq $null) { Write-Warning "AzureAD module not installed. Some Impact cmdlets may error." } If ($BurntToastModule -eq $null) { Write-Warning "BurntToast module not installed. Some Impact cmdlets may error." } # Load Impact Functions Get-ChildItem -Path "$PSScriptRoot\impact\*.ps1" | Foreach-Object{Import-Module $_.FullName;Export-ModuleMember -Function $_.BaseName } # Load Auxillary Functions # Get-ChildItem -Path "$PSScriptRoot\lib\*.ps1" | Foreach-Object{Import-Module $_.FullName} |