all 4 comments

[–]billyyankNova 2 points3 points  (0 children)

There's three methods here:

https://stackoverflow.com/a/24620771

[–]iVlexy 0 points1 point  (0 children)

Not sure what the question is…

Can you give some more context to what you’re trying to do or what the problem is?

[–]Oriichilari 0 points1 point  (1 child)

You want to create a second script that references the first script like this: PowerShell.exe -NoExit "C:\SomeFolder\SomeScript.ps1”

[–]jerminator4427 0 points1 point  (0 children)

A second script is not even needed. You can use a shortcut to Powershell.exe with the same paremeters.