2

Is there a way to create a script that runs multi scripts? Also the first script should finish before next script is allowed to start.

Example:

.\script1.ps1 arg1

#wait until script1 is done
.\script2.ps1 arg1 arg2

#wait until script2 is done
.\script3.ps1 arg1 arg2

2 Answers 2

3

the example you gave is a valid script, just put it in a script file and run it.

Sign up to request clarification or add additional context in comments.

Comments

3

just try :

.\script1.ps1 arg1;.\script2.ps1 arg1 arg2;.\script3.ps1 arg1 arg2

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.