Hi @AjitJ,
You can use Maven as a build tool and drive execution of your testng xml or create a Windows batch file to execute your testng xml by following below steps:
- Add classpath
- Provide location to store compiled classes
- Compile all test classes
- Execute testng.xml provide any command line parameters required.
Along with this in case you want to start Appium programmatically, use this link:
Launching and stopping appium server programmtically [Start appium programmatically][1]
Let me know if you need further info.
Thanks,
Sujata