Welcome to the Forum, cap10_arshee! It was better if you created a dedicated thread (use the "Post New Thread" button located in left-top side of each section) for this subject since is unrelated with OP's issue. However may ask a moderator to fix this for you.
I'm not sure if you can achieve what you are looking for solely by a script - cannot pause for user input. I suggest you to investigate an AutoLISP approach instead.