Why would you write a macro with modifiers? You put the Wrath power on button 1 and Starfire on Button 2. You put Starsurge on Button 3. Starfall on button 4. Then you make a burst Macro (Trinket, Incarnation, Convoke). Cast Starsuge on single target, Starfall on Multi target.
You Wrath to enter lunar eclipse and spam Starfire. Or cast 2 starfires to enter Solar Eclipse and Spam Wrath. When you want to burst you pop your burst macro and watch things melt.
Unfortunately the way Boomkins are, you have to manually cast. You cannot automate it as the macro wont know what eclipse you are in to cast the right spell.