title: Resubmit hanging job (start-job)
body: <p>I am starting several jobs (with Start-Job) and at the end of my script i do a check to see if the jobs have been running more than X seconds. I would then like to take the Running and Failed jobs and restart them until they succeed.</p>
  
  <p>The jobs are named after the server that I'd like to run against (with for example Test-Connection).
  My problem is that I can't figure out how to re-submit the jobs!</p>
  
  <pre><code>get-job | where { $_.state -eq "running" } | remove-job -force | start-job -ScriptBlock { echo $_ }
  </code></pre>
  
  <ul>
  <li>How can I pipe the Name of the failed/hanged job(s) to the new job I am starting?</li>
  <li>How can i wait for the remove-job to finish before I continue on Start-Job?</li>
  </ul>
  
  <p>Kind regards:)</p>