BenLPed.Scriptlogging.psm1
# Get-ChildItem "$(Split-Path \\localhost\PowerShell$\Module\Logging\1.10.0.1)\Public\*" -Filter '*.ps1' <# Get-ChildItem (Split-Path $script:MyInvocation.MyCommand.Path) -Filter '*.ps1' -Recurse | ForEach-Object { . $_.FullName } Get-ChildItem "$(Split-Path $script:MyInvocation.MyCommand.Path)\Public\*" -Filter '*.ps1' -Recurse | ForEach-Object { Export-ModuleMember -Function ($_.BaseName -Split "_")[1] } Get-ChildItem -Path '\\localhost\PowerShell$\Module\Logging\1.10.0.1\Public' -Recurse | ForEach-Object { . $_.FullName } Get-ChildItem -Path '\\localhost\PowerShell$\Module\Logging\1.10.0.1\Public' -Recurse | ForEach-Object { Export-ModuleMember -Function ($_.BaseName -Split "_")[1] } Get-ChildItem -Path "\\localhost\PowerShell$\Module\Logging\1.10.0.1\Public\*" # .'\\localhost\PowerShell$\Module\Logging\1.10.0.1\Public\start-log.ps1' $JoinPSScriptRoot = Join-Path $PSScriptRoot Public Get-ChildItem -Path $JoinPSScriptRoot | Unblock-File Export-ModuleMember -Cmdlet * -Alias * #> .$psScriptRoot\Public\start-log.ps1 .$psScriptRoot\Public\Write-log.ps1 <# Import-Module -Name .\Logging -Force Get-Command -Module Logging #> |