Try:
run(pipeline(`miktex-pdftex.exe -undump=pdflatex $(tmp_tex_fi) --output-directory=$(tmpfld)`, devnull))