PSStoredCredentials.psm1
# Universal psm file # Requires -Version 5.1 # Get function file $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 * |