DemoModulePublicPrivate.psm1

1
2
3
4
5
6
7
8
9
10

# . "$psscriptroot\public\Get-PCInfo.ps1"
# . "$psscriptroot\public\Get-PCUpTime.ps1"
# . "$psscriptroot\Private\Get-DriveInfo.ps1"

$pri = Get-ChildItem $pwd\public -filter *.PS1
$pub = Get-ChildItem $pwd\private -Filter *.PS1

$pub | ForEach-Object { . $_.Fullname }
$pri | ForEach-Object { . $_.Fullname }