If you add the PPCLI.exe to the environment path variable, then all you need to do is have the line:
at the beginning of the batch file and it will start the CLI first thing it does.
You may then proceed to run following CLI commands in the following lines of the batch file to interface with the PPCLI program.
Here is an example batch file line that runs code from the "script.txt" file using the PPCLI program (Assumes you added the PPCLI to the environment path):
PPCLI "--runfile script.txt"
P.S. This is as far as I got, since I don't know how to interface with the batch language to save/store/use variables from the different line outputs