I am currently having the same issue. The error happens very inconsistently, maybe 50% of the time I try to execute a ToggleWin command. The frustrating thing about this is the same script was working without issue as recently as two or three weeks ago.

Has anyone else encountered this issue?