However, using GOTO's is considered by many to be poor scripting. It results in code this is difficult to follow, troubleshoot, and edit.

Here is one of numerous alternatives to achieve the same task without using GOTO's...
 Code:
Select
   Case @UserID = "JohnDoe"
      Group1()
   Case @UserID = "Betty"
      Group2()
   Case 1
      ; If It Get Here Then User ID Was Not In List
EndSelect

Function Group1()
   use z: "\\fs1\all$
   $nul = AddPrinterConnection("\\PS1\HPb")
EndFunction

Function Group2()
   use y: "\\fs1\none$
   $nul = AddPrinterConnection("\\PS1\HPc")
EndFunction