title: Run Multiple Powershell Scripts Sequentially - on a Folder - Combine Scripts into a Master Script
body: <p>I have 6+ scripts and growing to run on a folder, what is the best way to have them run one after the other.</p>
  <p>I have seen and tried this thread  - it did not work unfortunately.</p>
  <p><a href="https://stackoverflow.com/questions/17966263/how-to-run-multiple-scripts-one-by-one-in-a-powershell-script">How to run multiple Scripts one by one in a powershell script</a></p>
  <p>In a  master .ps file  - I have put links to the power shell scripts that need to be run in order</p>
  <h1>Run Scripts in order</h1>
  <pre><code>'C:\Users\WP\Desktop\Scripts\1.ps1'
  'C:\Users\WP\Desktop\Scripts\2.ps1'
  'C:\Users\WP\Desktop\Scripts\3.ps1'
  </code></pre>
  <p>etc</p>
  <p>This did not work either. Your help is appreciated -  I have searched all over and can't seem to fix this issue.</p>
  <p><strong>Revised:</strong>  I believe I will have to wait for each power shell script to finish before running the  next one  - as I have had errors when I tried to run 3 scripts one after the other - nothing happened when the scripts were run</p>
  <p><strong>Final</strong>  -</p>
  <p>I thank you all for your help - to keep things simple this is what I have done</p>
  <p>My folder has the scripts below - I have then created a Master.ps1 with the code below inside it:</p>
  <pre><code>&amp;&quot;$PSScriptroot\1.ps1&quot;
  &amp;&quot;$PSScriptroot\2.ps1&quot;
  &amp;&quot;$PSScriptroot\3.ps1&quot;
  &amp;&quot;$PSScriptroot\4.ps1&quot;
  &amp;&quot;$PSScriptroot\5.ps1&quot;
  &amp;&quot;$PSScriptroot\6.ps1&quot;
  </code></pre>
  <p>I have then run the Master.ps1  on the folder with all the files - and it does the job so far.</p>