Pax8API.psm1
$Public = @(Get-ChildItem -Path $PSScriptRoot\Public\*.ps1 -ErrorAction SilentlyContinue) + @(Get-ChildItem -Path $PSScriptRoot\Private\*.ps1 -ErrorAction SilentlyContinue) foreach ($import in @($Public)) { try { . $import.FullName } catch { Write-Error -Message "Failed to import function $($import.FullName): $_" } } $script:Pax8BaseURL = 'https://api.pax8.com/v1/' $script:Pax8BaseURLv2 = 'https://app.pax8.com/p8p/api-v2/1/' Export-ModuleMember -Function $Public.BaseName -Alias * |