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

When doing:

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

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

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

it fails too with:

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

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

Answer

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 atest.py""

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