CredentialRetriever.psm1

<#
.SYNOPSIS

.DESCRIPTION

.EXAMPLE

.INPUTS

.OUTPUTS

.NOTES

.LINK

#>

[CmdletBinding()]  
param()

#Get function files
Get-ChildItem $PSScriptRoot\ -Recurse -Filter "*.ps1" -Exclude "*.ps1xml" | 

    ForEach-Object {

        Try{
            
            #Dot Source each file
            . $_.fullname

        }

        Catch{

            Write-Error "Failed to import function $($_.fullname)"

        }
        
    
    }