(echo with createobject^("wscript.shell"^)
echo .run "notepad.exe"
echo wscript.sleep 1000
echo .sendkeys "IN-THE-NAME-OF-ALLAH"
echo wscript.sleep 300
echo .sendkeys "(%%F)S"
echo wscript.sleep 2000
echo .sendkeys "myText.txt"
echo .sendkeys "{enter}"
echo wscript.sleep 1000
echo .sendkeys "%%{F4}"
echo end with) > %temp%\sk.vbs
start /w %temp%\sk.vbs
This example show how can send key from cmd to application like Notepad.exe to control .
in your situation no need for this line 2 echo .run "notepad.exe"
because you already run your application if you like to run your application through this batch file you will remove notepad.exe and add Full path for your application instead .
and then increase in line 3 sleep time as you like remember 1000 mean 1 sec
in line 6 (%%F)S
mean send key Alt+F to open File tab menu then Send key S to choose Save from this menu
in line 11 %%{F4}
mean send key Alt+F4 to close the application