How to pass a second parameter with quotes (“”) with cmd.exe /k?

When doing:

cmd /k "C:Python37python.exe" D:test

it fails because of the space in the directory name. But when doing:

cmd /k "C:Python37python.exe" "D:test"

it fails too with:

The filename, directory name, or volume label syntax is incorrect.

Why? How to solve this, when still using cmd /k?


In fact, it has already been addressed on SO: How do I use spaces in the Command Prompt?

Both these solutions should work:

cmd /k ""C:Python37python.exe" "D:test""

cmd /k ("C:Python37python.exe" "D:test")