Welcome to the forum @comecme
“Edit as text” in GUI’s Commandline option doesn’t have to guess where an option ends, due to its line-oriented format which doesn’t need quoting. Export As Command-line tries to set the quoting so a true command line such as a Command prompt
or .bat file works (I’m not so sure if it’s right for PowerShell).
Double quotes do things like keep a string together despite an embedded space. Embedding a double quote inside a double quoted string needs embedded double quote to be backslashed, and that’s what would happen (and not be what you want) with a single-backslash-double-quote sequence, so double-backslash becomes a backslash (which is what you need), and the second backslash is then used up.
Parsing C++ Command-Line Arguments
If an even number of backslashes is followed by a double quotation mark, one backslash is placed in the argv array for every pair of backslashes, and the double quotation mark is interpreted as a string delimiter.