MicrosoftGraph.psm1
# # Get public and private function definition files. # $functionsPublic = @( Get-ChildItem -Path $PSScriptRoot\FunctionsPublic\*.ps1 -ErrorAction SilentlyContinue ) $functionsPrivate = @( Get-ChildItem -Path $PSScriptRoot\FunctionsPrivate\*.ps1 -ErrorAction SilentlyContinue ) # # Dot source the files # foreach($functionToImport in @($functionsPublic + $functionsPrivate)) { try { . $functionToImport.fullname } catch { Write-Error -Message "Failed to import function $($functionToImport.fullname): $($_)" } } # # Export public functions # Export-ModuleMember -Function $functionsPublic.Basename |