Is there an program that you can type into command line or terminal with a set of parameters to run a 16 bit program? Such as: "run16bitprogram.exe 'path/to/program/test.exe'" and just output whatever the program does in the console.
If there are such programs, i would like them to be cross platform if possible.
Here is an example image of the dosbox executed from Java:

Here is the config file:

Here is the code from java (ProcessBuilder did not even open DOSBox):
Runtime.getRuntime().exec(new String[] { "C:/Program Files (x86)/DOSBox-0.74/DOSBox", "-conf \"C:/Users/Braden Steffaniak/Documents/GitHub/Workspace/ArrowIDE/res/assembly/new.conf\"", "-noconsole" });
The -noconsole command works, but if I add any -c parameters, it does not do anything.
If I type the command in command prompt, it works as I expect it to.