Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Wait for powershell script to complete before starting another script

$
0
0

Hi Guys,

I have big powershell script (which run another scripts), which run on Jenkins machine, but once ran, Jenkins did not wait till is finished, and give an error message.

What I want is that this script run, and wait till is finished.

I tried the following but without success:

Start-Process powershell.exe E:\scripte\yourScript01.ps1 -wait

Any ideas.

 

Thx


Viewing all articles
Browse latest Browse all 6937

Trending Articles