Home

Awesome

Write-Menu

-Title 'AppxPackages' -Sort -Entries (Get-AppxPackages).Name

AppxPackages

-Title 'AppxPackages' -Sort -MultiSelect -Entries (Get-AppxPackages).Name

AppxPackages

NOTE: The menu has been updated multiple times since capturing these screen-grabs, so they are no longer accurate...

Description

Outputs a command-line menu which can be navigated using the keyboard.

Parameters

ParameterExample
RequiredEntries (array)-Entries @('Entry 1', 'Entry 2', 'Entry 3')
Entries (hashtable)-Entries @{'Entry 1' = 'Write-Host "Command 1"'; 'Entry 2' = 'Write-Host "Command 2"'; 'Entry 3' = 'Write-Host "Command 3'"}
OptionalTitle-Title 'Example Title'
OptionalSort-Sort
OptionalMultiSelect-MultiSelect

Examples

ExampleDescription
AdvancedMenuDemonstrates all supported entry types (regular command + methods of adding a nested menu).
AppxPackagesUses Write-Menu to list app packages (Windows Store/Modern Apps)
CustomMenuGenerates a custom menu by manually specifying each entry

Controls

KeyDescription
<kbd>Up</kbd>Previous entry
<kbd>Down</kbd>Next entry
<kbd>Left</kbd> / <kbd>PageUp</kbd>Previous page
<kbd>Right</kbd> / <kbd>PageDown</kbd>Next page
<kbd>Home</kbd>Jump to top
<kbd>End</kbd>Jump to bottom
<kbd>Space</kbd>-MultiSelect Select current
<kbd>Insert</kbd>-MultiSelect Select all
<kbd>Delete</kbd>-MultiSelect Select none
<kbd>Enter</kbd>Confirm selection
<kbd>Esc</kbd> / <kbd>Backspace</kbd>Exit / Previous menu