PSClearHost.psm1
$privateScripts = @(Get-ChildItem $PSScriptRoot\Private\*.ps1) $publicScripts = @(Get-ChildItem $PSScriptRoot\Public\*.ps1) foreach ($script in ($privateScripts + $publicScripts)) { . $script.FullName } Export-ModuleMember -Function $publicScripts.BaseName Export-ModuleMember -Alias * -Function * |