I am trying to run a batch file which requires user input \"y/n\" to do further action. I want to call this batch file for automation, as during automation argument yes or n
You can use stream operators like <. Write every expected answer one per line in a file (e.g. foi). Pass this file to the setup.bat using < operator:
cmd /c setup.bat < foi