confPWUpdate.psm1
# universal psm file # requires -Version 5.0 # Get function files Set-Location "C:\Program Files\WindowsPowerShell\Modules\confPWUpdate\1.0.30\" $Functions = @(Get-ChildItem -Path .\Scripts\*.ps1) # Dot source the files Foreach($import in @($Functions)) { try { . $import.FullName } catch { Write-Error -Message "Failed to import function $($import.fullname): $_" } } Export-ModuleMember -Function * -Cmdlet * -Alias * |