Help/Harm macro

I have the below macro that I would like to expand:

/cast [noform:2] cat form
/cast Skull Bash

Currently it puts me into cat form and Skull Bashes with one press. I would like to keep this function, but add a shift modifier to Skull Bash my focus target if targeting a hostile target.
If targeting a friendly target, I would like the same macro to cast Ironbark. Is this possible? Thanks.

#showtooltip
/cast [noform:2] Cat Form
/cast [mod:shift,@focus,help,nodead] Ironbark; [mod:shift,@focus,harm,nodead] [] Skull Bash