I'm looking for a way to open multiple powershell windows through a script. I tried with the following code, but it doesn't work.
for($1 = 1 ; $i -le 3; $i++)
{
Start-Process powershell.exe
}
How can I reach this goal?
Not sure where $1 came from, change it to this:
for($i = 1 ; $i -le 3; $i++)
{
Start-Process powershell.exe
}
and it'll work.
What's the end goal? Opening up new powershell processes will be slow and isn't usually necessary.