I have 6+ scripts and growing to run on a folder, what is the best way to have them run one after the other.
I have seen and tried this thread - it did not work unfortun
If you don't want to hard code the path, you can make Master.ps1 like this:
&"$PSScriptroot\1.ps1" &"$PSScriptroot\2.ps1" &"$PSScriptroot\3.ps1"
And it will look for those scripts in the same directory where it is.