for %x in (%1) tpipe /input=%x /output=%x /eol=3,2,0 /simple=13
works.
Of course, one can lost the file is there is a problem, but I am dealing with text files easily recovered.
The files are generated in Linux and copied to DOS, the original files remain in Linux disk.
The reverse is
for %x in (%1) tpipe /input=%x /output=%x /eol=3,0,0 /simple=13
For Mac files to DOS
for %x in (%1) tpipe /input=%x /output=%x /eol=1,2,0 /simple=13
The reverse
for %x in (%1) tpipe /input=%x /output=%x /eol=2,1,0 /simple=13
Regards.