CommandLineToArgvW() has special handling for whitespace and quotes on the command line. I doubt that the same rules apply in interactive mode.
I would start by splitting the buffer into class (possibly preceded by 'path' specifier), verb and properties.