Demo-Choices.ps1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
$Title = "Do you want to proceed further?"
$Prompt = "Enter your choice"
$Choices = [System.Management.Automation.Host.ChoiceDescription[]] @("&Yes", "&No", "&Cancel")
$Default = 1
$Choice = $host.UI.PromptForChoice($Title, $Prompt, $Choices, $Default)
switch($Choice)
{
0 { Write-Host "Yes - Write your code"}
1 { Write-Host "No - Write your code"}
2 { Write-Host "Cancel - Write your code"}
}
source & further reading
gist.github.com — original article
Invoke-OSDDiskLayout.ps1 | ConfigMgr OSD v1.0.0 snapshot (MIT)
GPT-5.6 Sol clarification vs guess benchmark
LLM handoff: install a custom GitHub profile header with GitHub CLI setup