The input support is built into the console in CCS, not DSS. Hence when running from the command-line, that direct support is lost. So basically, there is no direct DSS API to support what you are looking for. You will have to use one of the workarounds.
ki