To do what you are wanting to do you are going to have to look into pauses. You will need a pause before step 4 to ensure that at a minimum the GCD is free. If you don’t have clear air and can’t cast at the beginning of step 4 all you will do is clip wherever the macro is currently.
I describe the technique here: Cast spell only when it becomes instant
Note from that link it was for GSE2. Each line in that needs to be its own action and the /click pauses are now pause blocks.