PowerGraph365.psm1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
$scriptFiles  = @( Get-ChildItem -Path $PSScriptRoot\Functions\**\*.ps1 -ErrorAction SilentlyContinue )

Foreach($import in $scriptFiles)
{
    Try
    {
        Write-Verbose "Importing $import"
        . $import.fullname
    }
    Catch
    {
        Write-Error -Message "Failed to import function $($import.fullname): $_"
    }
}