Hi,
I could replicate the issue you are facing the copying the template query and pasting it in command prompt after making the required changes.
Workaround: Just type the whole command in the command prompt and it will surely work 🙂
I guess, there is some special character\Unicode conversion of space or something is causing an issue.. Not sure.. Let me know if you could find the exact culprit..
Regards
Bhav