To answer your original question, no. Blizzard specifically disallows targeting in lua scripts, sadly.