If you want it to be like a /castsequence you should check out MacroSequence.