Analyth.PowerShell.psm1

# Module: Analyth.PowerShell

$moduleName = "Analyth.PowerShell"

# Import functions
$functions = Get-ChildItem -Path $PSScriptRoot\Functions -Filter *.ps1

foreach ($function in $functions) {
    . $function.FullName
}

# This command is automatically executed when the module is loaded to create aliases with prefix "ana" for all the functions
Get-Command -Module $moduleName | Where-Object { ($_.CommandType -eq "function") } | ForEach-Object { $name = $_.Name ; Set-Alias "ana-$name" $name }