Simple question with targeting mob with two names

@name only works for players in your goup, and their derivative targets.

#showtooltip 
/tar Life Spark
/cast Shadow Bolt
/targetlasttarget

Though personally I’d just use a mouseover macro.