Launch non-blocking process from powershell

Question:

I’m writing a powershell script that needs to push code to several git repositories simultaneously?

Here’s the script I have thus far:

Here’s how I execute the script:

How to I execute the & git push $_ master --fore -v in a way that is non-blocking?

SOLUTION

Thanks to @Jamey for the solution. I wound executing this command:

Answer:

You can also use start-process to run each push in an additional command window.

Source:

Launch non-blocking process from powershell by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply