powershell - Read-Host

soma-engineering.com

[ValidateSet("y","n")]
$res= Read-Host "ok?(y or n)"
Write-Host $res