\documentclass{article}
% load the lua code
\directlua{require("newpax")}

% and/or write .pax files for pax.sty
\directlua
  {
    newpax.writepax("doc-input")
    newpax.writepax("doc-input2")
  }
\begin{document}
\end{document} 