WoW:API FollowByName
Template:API/Uncategorized /script followbyname(%t)
This function allows you to follow a player with the name you specify instead of using a UnitID.
Keep in mind that if the player with the name you specify is not close by, it may follow a different player with a similar name.