That's the same name as the utility quoted in the original post. Is it the same utility? Or just another by the same name?
The OP references a post by me which includes a quote by jity2 which mentions "txttopdf.exe" - different name, (txt2pdf
not mentioned in that whole thread - typo or mis-link?).
There are multiple versions of executables called txt2pdf including this one
from Sourceforge but it puts up a requester when it finishes which makes it unsuitable for CLI batch use.
The one I linked is just a search result, (that I tested against a few files), that lets you also specify a few output options that should cover the majority of cases for simple text conversion. As a bonus its website tested clean against VirusTotal.
In theory, you could do it all using PowerShell, for example, this code from TechNet
, but I could only get it to produce blank PDFs and after staring at it for 30 minutes and not being able to work out what the hell was happening, decided it was easier to use the results of the Google search
... why reinvent the wheel?