Tak třeba powershell:
$questions = "otazka1", "otazka2", "otazka3"
$yeses = @()
foreach ($question in $questions) {
do {
$answer = (Read-Host "$question (Y/N)").ToUpper()
} while ($answer -ne "Y" -and $answer -ne "N")
if ($answer -eq "Y") {
$yeses += $question
}
}
foreach ($yes in $yeses) {
Write-Host $yes
}