dynamics365-release-automation-tools.psm1
#------------------------------------------- ## Load Script Libraries ##------------------------------------------- $functions = @(Get-ChildItem -Path $PSScriptRoot\functions\*.ps1 -ErrorAction SilentlyContinue) $model = @(Get-ChildItem -Path $$PSScriptRoot\model\*.ps1 -ErrorAction SilentlyContinue) #Dot source the files Foreach($import in @($model + $functions)) { Try { . $import.fullname Write-Host $import.fullname } Catch { Write-Error -Message "Failed to import function $($import.fullname): $_" } } Export-ModuleMember -Function $functions.Basename Export-ModuleMember -Function $model.Basename |