I found this site, x86dos.gear.host with this incredible writeup on using a TSR to call a real mode ‘library’, which in turn calls another TSR.
It’s really interesting. Â And probably a lot more useful 10+ years ago.
In addition there is a patched version of DOSBox, that includes support for named pipes.