prints CmdString before running it