Hi Paul,
no need to change anything in the script, just execute as is, as the argument of the python executable.
Follow the example in https://ask.libreoffice.org/en/question/4648/windows-install-unoconv/#4907 and keep care that the conversion will open a TCP port, 2002 by default... you can change it by using the option -p 12345.
HTH,
Matteo