MrAToolbox.psm1

1
2
3
4
5
6
7
8
9
10
# Source all ps1 scripts in current directory.
#Get-ChildItem (Join-Path $PSScriptRoot *.ps1) | foreach {. $_.FullName}

foreach ($file in Get-ChildItem $PSScriptRoot\*.ps1) {
    . (
        [scriptblock]::Create(
            [io.file]::ReadAllText($file)
        )
    )
}