init.ps1
# use this file to define global variables on module scope # or perform other initialization procedures. # this file will not be touched when new functions are exported to # this module. # determine whether we are in Windows PowerShell or PowerShell 7 $folder = if ($PSVersionTable.PSVersion.Major -le 5) { Join-Path -Path $PSScriptRoot -ChildPath Binaries } else { Join-Path -Path $PSScriptRoot -ChildPath BinariesPs7 } $dllPath = Join-Path -Path $folder -ChildPath Terminal.Gui.Dll Add-Type -Path "$PSScriptRoot\Binaries\Terminal.Gui.dll" |