_ImportModule.ps1
try { Remove-Module AadSupport Write-Host "AadSupport removed." -ForegroundColor Yellow } catch { Write-Host "AadSupport already removed." -ForegroundColor Yellow } try { $file = Get-Content "AadSupport.publish" } catch { } if ($file) { ren "AadSupport.psd1" "AadSupport.unpublish" ren "AadSupport.publish" "AadSupport.psd1" } Import-Module -Name ".\AadSupport.psd1" Get-Module AadSupport Write-Host "AadSupport Imported. Ready for Publishing." -ForegroundColor Yellow |