TransitionManager.psm1
## Load all files in the lib directory $LibraryFiles = @(Get-ChildItem (Join-Path $PSScriptRoot 'Private') -Exclude 'Classes' | Get-ChildItem -Recurse -Force -File) $LibraryFiles += Get-ChildItem (Join-Path $PSScriptRoot 'Public') -Exclude 'Classes' | Get-ChildItem -Recurse -Force -File # For Each $Library File, load it foreach ($LibraryFile in $LibraryFiles) { . ($LibraryFile.FullName) } |