Create a Cmd from a String