Hi Gurus,
I am running an executable that prompts for confirmation when it is invoked,
c:\> commit.exe
Are you sure you want to continue (y/n) ?
My script needs to call this executable (commit.exe) and then provide input to the prompt either as 'y' or 'n'. How do I take care of this in powershell, such that when I get an expected prompt, I can enter the required input?
Here I would like to enter 'y' or 'n' to the prompt.
-Pranav