Good morning and welcome to TheSwamp.
Some questions to determine where to start.
Have you learned to use the VLIDE editor & debugging too that comes with AutoCAD?
Can you Load & Run a lisp?
Can you comment the lines in this lisp?
(defun c:Test ()
(command "Line" pause pause "")
(princ)
)