I would like to make a batch file that launches a .exe file that takes a value as input and return an output value.
It will work same as a DOS example
If you type in DOS prompt
dir c:\ >c:\test.txt
From there write a batch file with Notepad containing the lines:
dir c:\ >c:\test.txt echo FINISHED
Thanks to amigo for this tip.