How to run multiple Powershell Scripts at the same time?

Question:

so I have two .ps1 scripts that check for new Tasks every 60 seconds and I want to run them at the same time. I use them every day and starting them gets a little annoying.
Ideally, I want to write a script that I can run that runs those two for me.

The Problem is that as they don’t stop at some point, I can’t just start them one after the other and I can’t find a command to open a new PS ISE instance. However, one instance can’t run both scripts at the same time. The Ctrl+T Option would be perfect, but I can’t find the equivalent command.

Does anyone have an idea on how to solve this?
Thanks!

Answer:

I think what you want is something like

In addition to that: Use Import-Module $Modulepath inside the scripts to ensure the availability of the modules.

Source:

How to run multiple Powershell Scripts at the same time? by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply