KFTeamsTools.psm1
# Universal psm file # Requires -Version 5.0 # Get functions files $Functions = @(Get-ChildItem -Path $PSScriptRoot\Scripts\*.ps1 -ErrorAction SilentlyContinue) # Dot source the files foreach($import in @($Functions)) { try { . $import.fullname } catch { Write-Error -Message "Failed to import function $($import.fullname): $_" } } # Export everything in the public folder Export-ModuleMember -Function * -Cmdlet * -Alias * |