title: How to get a query to pass through the script again?
body: <p>This might be a simple question but how do you get a PS query to pass through your script after completion or error. I want the script to pass through the following example.</p>
  
  <pre><code>$menu = read-host -prompt "example"
  
  if ($menu -eq 1) {$example1 = read-host -prompt "example"}
  if ($example1 -eq 1) {
    Write-Host "Completed"
    Clear-History
  }
  </code></pre>
  
  <p>I then want the script after it is completed to start at <code>$menu</code> again.</p>