title: Jumping around to certain spots in script
body: <p>Is there a way to make a script jump to a specific spot like :GOTO in command prompt? I wanted to make the script jump to the beginning when it is ended.</p>
  
  <pre><code>$tag1 = Read-Host 'Enter tag #'
  
  cls
  
  sc.exe \\$tag1 start RemoteRegistry
  
  cls
  
  Start-Sleep -s 2
  
  cls
  
  systeminfo /S $tag1 | findstr /B /C:"OS Name" /C:"System Boot Time" /C:"System Up Time";
  
  
  Get-EventLog system -computername $tag1 -InstanceId 2147489657 -Newest 10 | ft EventID,TimeWritten,MachineName -AutoSize
  
  Pause
  </code></pre>