Knowing full well about the eternal discussion about whether it is good practice to use GOTO (GOTO still considered harmful?), what I'm trying to ask here is if there are some drawbacks in using GOTO, specifically in CMD/DOS shell.
By drawbacks I mean if there is some loss of performance or some situations where extensive use of GOTO could end up terminating my script (as the behavior described later). I know, because TI-BASIC has no good way to create structured programs without it, that repetitive usage of GOTO in that platform will eventually drain the memory. The following quote from TIBasicDev explains this behavior:
Using a Goto to exit any block of code requiring an End command causes a memory leak, which will not be usable until the program finishes running or executes a Return command, and which will slow down your program down.
The other "way" of looping through commands in CMD is through FOR statements, that are remarkably specific about their expected arguments and as such can not be used in any situation.