cut the flash of light to use light of dawn?

I need help, I need a macro that stops the flash of light when I have the 3 charges of holy power to disspire the light of dawn, basically I only use 1 button and and I press it without stopping but it skips the light of dawn and only casts full flash of light , and don’t use the 3 charges of holy power to use the light of dawn, help :frowning:

Step 1
/cast [nochanneling] Light of dawn

Step 2
/cast Divine Favor

Step 3
/cast Grant Faith

Step 4
/cast Holy Shock

Step 5
/cast flash of light

Step 6
/cast [nochanneling] Light of dawn