1. Change whatever.exe to accept command args, and then have the Java wrapper do the same, constructing a command line that includes those args.

2. Replace whatever.exe with a batch file that uses...