Dcm.psm1
# DCM Module # <# .Author Hanu DCM .SYNOPSIS A simple module that use dot source to load the function .DESCRIPTION When the module is imported, the functions are loaded using dot sourcing #> #Install-Module ImportExcel -Force -AllowClobber -WarningAction SilentlyContinue $functionpath = $PSScriptRoot + "\function\" $functionlist = Get-ChildItem -Path $functionpath -Name foreach($function in $functionlist) { . ($functionpath + $function) $func=$function.split(".ps1") Write-Output "Importing Function: $($func)" } |