Testing the code in BricsCAD there is an issue with the comments. Some start with ' (single quote). This should be ; (semicolon). After changing this the code works OK.
If you use command calls in Lisp code the prompts of those commands need not be presented to the user as your code handles all input. Switching the CMDECHO to zero will hide those prompts.