$repeat isn't a built in identifier, however, if there is a custom alias called repeat, then the results of that alias can be returned to the calling script by using $repeat.
Sorry for the late reply. Umm nope, there is no custom alias. Just this code. My friend was telling me why doesn't the code work? =\ I tried and no hope for it to work.
For that code to work, there MUST be a custom alias called repeat. The alias may be in the Aliases section or in the Remotes section. If it is in the remotes section, then ensure that it's either in the same Remote script or that it doesn't have the -l switch.