Passphraser.psm1
[cmdletbinding()] param() foreach ($folder in @( 'scripts\public', 'scripts\private')) { $root = Join-Path -Path $PSScriptRoot -ChildPath $folder if (Test-Path -Path $root) { $files = Get-ChildItem -Path $root -Filter *.ps1 -Recurse $files | Where-Object { $_.name -NotLike '*.Tests.ps1' } | ForEach-Object { . $_.FullName } } } Export-ModuleMember -Function (Get-ChildItem -Path "$PSScriptRoot\scripts\public\*.ps1").basename |