why not just use /cast [target=focustarget] spell ?
Aslong as your focus has a target it wont fail.
I do believe you could make that macro but my skillz arent deep enough