what i would do is make a batch program to call python.
and test it from the command line outside of aware. cleaner and gets rid of quoting issues and parameter passing challenges.
(and it would work better in powershell, than batch files, from my experience.)
here's an example to run imagemagick passing some parms:
EXECUTE PROGRAM SystemSettings.DQ + 'c:\Program Files\ImageMagick\magick.exe' + SystemSettings.DQ + ' ' + EstimatePictures.PicPath + ' -rotate 90 ' + LoggedInStaffMembers.tmp_Filename
