DattoRmmApi.psm1
$Sources = @(Get-ChildItem -Path $PSScriptRoot\functions\*\*.ps1 -ErrorAction SilentlyContinue) foreach ($Source in @($Sources)) { try { . $Source.FullName } catch { Write-Error -Message "Failed to import function $($Source.FullName): $_" } } |