command
(command [argument]...)
Types the arguments on the command line, like a script: strings as they are ("" is Enter), numbers and points as text, entity names and selection sets as a selection, and pause for the user to give that input. nil is skipped. (command) with no arguments cancels the active command. Returns nil.
(command "_line" '(0 0) '(100 0) "") (command "_circle" pause 25)
Notes
Use global names (_line) so that the routine works with the interface in any language. With CMDECHO set to 0 the command line does not repeat the prompts or what command types (results are still shown).