There is no version of Windows in which command.com closes itself immediately after being run (with no parameters). All you need to do is run "command", then type "set".
In fact, the /k switch does not exist in all versions of command.com.
In fact, the /k switch does not exist in all versions of command.com.