sudo apt-get install dosbox
In my case I use such command line to execute utility xlpz.exe:
dosbox -c "cycles max" -c "MOUNT E $XPLZDIR" -c "MOUNT D $DIR" -c "d:" -c "e:\xlpz.exe $FILENAME" -c "exit"
- $XPLZDIR - directory where xlpz.exe is situated in host OS, it will be mounted in DOSBox as drive E
- $DIR - directory where data for processing is situated (it will be mounted in DOSBox as disk D), the result will be written in the same folder
- $FILENAME is the file name of file to be processed but without folder path because for the utility it is situated directly in the root of D drive
Unfortunately there is not any directive for DOSBox to not show its UI part but it is not big evil in the business.