isn't the command "cd" create directory not change directory?
For the original post, if you accidentally found yourself in the wrong command interpreter (command instead of cmd) you could always type file and directory names that contain spaces with quotes, e.g. cd "program files"