You can put it into a macro.
/cast [@Target'sName] Focus Magic

If you know that you're going to be casting Dispel Magic at a specific target, you could macro that too.
/cast [@Target'sName] Dispel Magic