PSApprendaApi.psm1
$Files = Get-ChildItem -Path $PSScriptRoot\* -Include *.ps1 -Recurse foreach($file in $Files) { try { . $file.FullName } catch { Write-Error -Message "Failed to import function $($file.FullName): $_" } } Export-ModuleMember -Function $Files.BaseName |