examples/PSScriptMenuGui.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
#region Setup
Set-Location $PSScriptRoot
Remove-Module PSScriptMenuGui -ErrorAction SilentlyContinue
try {
    Import-Module PSScriptMenuGui -ErrorAction Stop
}
catch {
    Write-Warning $_
    Write-Verbose 'Attempting to import from parent directory...' -Verbose
    Import-Module '..\'
}
#endregion

Show-ScriptMenuGui -csvPath '.\example_data.csv' -Verbose