Alrighty, then, on Linux, just for you.
[fred@dejah launch]$ chmod +x foo.txt
[fred@dejah launch]$ ./foo.txt
fixme:winediag:start_process Wine Staging 1.9.12 is a testing version containing experimental patches.
fixme:winediag:start_process Please mention your exact version when filing bug reports on winehq.org.
winevdm: Cannot start DOS application E:\launch\foo.txt
because the DOS memory range is unavailable.
You should install DOSBox.
[fred@dejah launch]$
I have Wine installed. Same defect as Windows, which is either good or bad -- this is hard to determine.
At least, the hint of installing DOSBox is reasonable. So, let's do that:
[fred@dejah launch]$ sudo dnf install dosbox
and try it again:
[fred@dejah launch]$ ./foo.txt
fixme:winediag:start_process Wine Staging 1.9.12 is a testing version containing experimental patches.
fixme:winediag:start_process Please mention your exact version when filing bug reports on winehq.org.
DOSBox version 0.74
Copyright 2002-2010 DOSBox Team, published under GNU GPL.
---
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused
CONFIG: Generating default configuration.
Writing it to /home/fred/.dosbox/dosbox-0.74.conf
CONFIG:Loading primary settings from config file /home/fred/.dosbox/dosbox-0.74.conf
CONFIG:Loading additional settings from config file /home/fred/.wine/dosdevices/c:/users/fred/Temp/cfgcbaf.tmp
MIXER:Can't open audio: No available audio device , running in nosound mode.
ALSA:Can't subscribe to MIDI port (65:0) nor (17:0)
MIDI:Opened device:none
[fred@dejah launch]$