You'll need to use the static Start method of System.Diagnostics.Process to
start new instances of PS. First, check the commandline syntax for starting
a script using
PowerShell -?
Assuming you're using PS2, you can run a script with arguments like this
from within PowerShell:
[system.diagnostics.process]::Start("powershell", "-file
c:\tmp\myscript.ps1 -arg1 arg2")
The script will start, run, and exit when finished. If you want it to remain
open, include the -noexit argument BEFORE the -file:
"-noexit -file c:\tmp\myscript.ps1 -arg1 arg2")
"Nate" <Na...@discussions.microsoft.com> wrote in message
news:93B32557-56A5-4E53...@microsoft.com...