Powershell module for creating arrow driven/multiselect menus. See demo
- Powershell 5.0+
- Download zip
- Copy files to
C:\Program Files\WindowsPowerShell\Modules\Power-Menu
- Run
Set-ExecutionPolicy Unrestricted
as Admin in PowerShell to enable running .ps1 scripts. (if necessary) - From
C:\Program Files\WindowsPowerShell\Modules
, run:Import-Module Power-Menu
New-SelectMenu [option list] [command options]
Will return a single selected item or an array of items (if multiselect is set).
Will return null
if esc
key is pressed.
New-SelectMenu @("Option 1", "Option 2", "Option 3")
New-SelectMenu @("Option 1", "Option 2", "Option 3") -Multiselect
Options
(array) - Array of menu options to display.
Multiselect
- Display option list as multiselect menu and return selected options.
Emoji
- Render menu options with emojis.
UP - go up
DOWN - go down
ENTER - select (single select)
SPACE - select (multiselect)
ESC - exit menu (returns null)
This is a modified version of ps-menu by chrisseroka. https://github.com/chrisseroka/ps-menu