As far as I know the /focus slash command calls the FocusUnit() function. This function (among others) is protected meaning that it can only be called by secure code (the Blizzard user interface). In short, it cannot be used in such a fashion.
__________________
|