I don’t think that surrounding the path with quotes works. I just had the same problem and my first thought was to surround the path with quotes, but it didn’t work.
What I did was use the alternate name: PROGRA\~1
Type: dir /x
That will display the contents of the directory but with alternate names (i.e. filenames with spaces).