back to the original error message i was getting, this is what took me days to fix....i eventually got the string to not break after that first space after Program...

'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

ERROR: 1 - Incorrect function.