I have a requirement where have to run multiple commands at a time and each command should use separate PowerShell session.
For example, I have 100 commands in a text file, the PowerShell should read the content of the text file and run all commands parallel. If we run normally, the commands are running sequential, the second line will run only after completing the first line. In my environment, each command is taking more than 2 days. If we run all commands parallel then the script will complete within 3 days.