@karthik_holla
This is responsible for starting the Appium server:
This represents the Appium server arguments196. You use whatever you want to start the server with (I was just giving you an example of how to do it).
To create the CommandLine object from the command, do that:
CommandLine command = new CommandLine();
command.addArgument("cmd);
command.addArgument("\c");
command.addArgument("\"C:/Program Files (x86)/Appium/node.exe\"");
command.addArgument("\"C:/Program Files (x86)/Appium/node_modules/appium/bin/Appium.js\"");
commadn.addArgument("--address");
Keep passing all the parameters as above. Keep in mind that you add a new argument for each space separated part of the command.