Export script fails with space in executable path

Helllo, my username in Windows is my full name with a space in it "John Doe" and the export script was failing to even execute when the export script was saved in a directory with my username in the path.

With "C:\bootstrap_rename.bat" it executes fine. With "C:\test folder\bootstrap_rename.bat" if fails with this error log.

Mon Feb 24 2020 18:20:52 GMT-0500 (Eastern Standard Time)
'C:\test' is not recognized as an internal or external command,
operable program or batch file.

This is my export script, but I don't think it's really relevant since it's not getting executed in the first place.

set arg1=%1
cd %arg1%
ren *.html *.php

It also fails when the bat file is just "echo test" with the same error message

Hi, I am facing the same issue and was wondering if you found a fix for this? Cheers, Jack