Not sure if it will make much difference but I would advise moving the line below to the top of the script.

WinGet, WowWinId, List, World of Warcraft