part 1: Batch files.
The part of the batch file which you started does the following:
Open a prompt (e.g. cmd.exe) and type
mybatch.bat red white blue.
That will start a file called 'mybatch.bat'
Inside that batch file you have access to a few variables. In our example:
%0 is mybatch.bat (the program name)
%1 is red
%2 is white
%3 is blue
%4 is empty in our example,
part 2: Java.
java -Xss256k -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true -jar BubbleUPnPTetherClient.jar %1 %2 %3 %4 %5 %6 %7 %8 %9
java Starts the java interpreter.
This is followed by some options. E.g.
Most of these are not interesting to us atm.
Your actual java program does not do much interesting (at least not for you). It mere executes orders. The .jar file has the ist of orders. (e.g. ask for a password, connect to some device using that password, pass tethered data along, ...'
One of the instructions will be to ask for that password. That means you want to edit the jar file. Maybe permanently add the password to its code.
Alternatively it might accept the password as on of its input parameters. This should be in the program manual. In that case you could start it with something like this:
java -Xss256k -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true -jar BubbleUPnPTetherClient.jar PASSWORD
(You could also supply that password to the batchfile. That %1 things will then pass whatever you typed to the java program).
Thirdly, if neither works we are out of luck. Switch to another program or use somthing like autoIT to do things on events.