📜  powershell 交互式菜单 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:28.381000             🧑  作者: Mango

代码示例1
$red = New-Object System.Management.Automation.Host.ChoiceDescription '&Red', 'Favorite color: Red'
$blue = New-Object System.Management.Automation.Host.ChoiceDescription '&Blue', 'Favorite color: Blue'
$yellow = New-Object System.Management.Automation.Host.ChoiceDescription '&Yellow', 'Favorite color: Yellow'