Label is illegal outside of a subprogram

You defined a label at the module level. Labels may not be defined at the module level. Executable statements at the module level are executed as the module is compiled, and then discarded. Therefore, control cannot be transferred to a labeled statement at the module level.

Remove the label, or the entire labeled statement. Revise the script to remove any attempted transfer of control to the labeled statement.