UofIFeroot.psm1
$Script:Settings = Get-Content -Path "$PSScriptRoot\settings.json" | ConvertFrom-Json # This will override the settings.json file if required. if ($env:FerootSettings) { $script:Settings= $env:FerootSettings | ConvertFrom-Json } [int]$Script:APICallCount = 0 [String]$FunctionPath = Join-Path -Path $PSScriptRoot -ChildPath 'Functions' #All function files are executed while only public functions are exported to the shell. Get-ChildItem -Path $FunctionPath -Filter "*.ps1" -Recurse | ForEach-Object -Process { Write-Verbose -Message "Importing $($_.BaseName)" . $_.FullName | Out-Null } |