title: Azure DevOps pipeline task to wait to run for another pipeline to complete
body: <p>I had a question regarding Azure DevOps pipelines and tasks and was wondering if anyone could help.</p>
  
  <p>I have a pipeline with a task that runs a PowerShell script. This script kicks off a separate pipeline, but once that script is run, the original task returns a "pass" (as expected) and the next task in the original pipeline begins to run. </p>
  
  <p>Ideally, I would like the next task in pipeline 1 to wait until the pipeline that was kicked off by the script is complete (and returns a pass). Does anyone know of a way this can be achieved? The steps are using YAML. So far I have seen conditions to wait for other steps in the same pipeline, but nothing to stop a step from running until a completely separate pipeline is completed (and passes successfully).</p>
  
  <p>Hopefully I am making sense. I can provide screenshots if that would help as well!</p>