If you are happy for a double press solution, you could try

Code:
#showtooltip Shadow Bolt 
 /assist focus 
 /cast Shadow Bolt 
 /castsequence [pet:imp,target=focustarget,exists,harm][] ,Firebolt