Welcome to the Forum, Manase.
Seems to me that you are referring to two different matters. (1) To run an existing AutoLISP routine from your code just do, if defined as function:
respectively if defined as command:Code:(MyALispFunction)
(2) To apply the editing inside blocks, you will need to parse the entities that compose that block’s definition. Seems that your routine will require some re-work.