How can I input \"yes\" as an answer to an interactive question in a PowerShell session? I know, in Bash, Yes is the tool to answer \"yes\" on the prompt. In my
Yes
Using ECHO worked for me. I am running RSKeyMgmt.exe in my Powershell script and it prompted Yes(Y)/ No(N). So when I do
ECHO Y | RSKeyMgmt.exe...
It did not prompt the question and the command was executed correctly.
So I think ECHO 'someoption' should work for other cases too.
ECHO 'someoption'