Use sumatrapdf-tool.exe or SumatraPDF.exe with the same arguments.
To use SumatraPDF to convert a text file to a PDF from command-line:
sumatrapdf-tool convert -o output.pdf input.txt
More info: