#Using module posh-PowerPlatformToolkit New-Variable -Name scriptRoot -Value $PSScriptRoot -Scope Script -Force ########################### # enums ########################### # public classes ########################### # public functions $publicFunctions = @{ Path = "$scriptRoot" Include = "*.ps1" Recurse = $true } (Get-ChildItem @publicFunctions).Where({$_.FullName -notmatch 'bin'}) | ForEach-Object {. $_} #Export-ModuleMember -Alias * -function * #Write-Host "┌───────────────────────────────────────────────────────────────┐" -ForegroundColor Green #Write-Host "│" -ForegroundColor Green -NoNewLine; Write-Host "`t`tCOMMANDS AVAIABLE IN MODULE`t`t`t" -ForegroundColor Cyan -NoNewline; Write-Host "│" -ForegroundColor Green #Write-Host "└───────────────────────────────────────────────────────────────┘" -ForegroundColor Green Get-Alias | ?{$_.Source -eq "posh-PowerPlatformToolkit"} | %{ Write-Host "$($_.Name)" -ForegroundColor Green }