I have a program that generates batch files and run them
Each batch file runs a .ps1 script and this ps1 script opens a remote session to a server to run against.
My issue is that the remote server is only allowing me 3 cuncurrent sessions so, when more than 3 batch are running in the same time. Some are failing.
I didn't find any way to open a global session to the remote server and share it across the ps1 scripts or run all the ps1.scripts in the same opened powershell window instead of creating a new one each time.