When I run Powershell under my account or under admin account, the tasks in my script are executed one after another. When I run it under another account, the tasks are started together, which is undesired behavior. How can I fix this?

```
$scriptBlock = {
    function runTasks()
    {
        C:\startTask1.ps1
        C:\startTask2.ps1
        C:\startTask3.ps1
        C:\startTask4.ps1
    }
}

Start-Process -FilePath PowerShell -ArgumentList "-NoProfile -ExecutionPolicy Bypass -Command & {$ScriptBlock runTasks}"

```

Another observation which may or may not be related - when I start powershell under my account or under "Run as Administrator", I get a window with blue background. If I start with a SHIFT + right-click and select "Run as different user" and provide another account then a window which opens up is black console-like.

EDIT #1:

I split my script into two files:

taskList.ps1

```
Start-Process -FilePath PowerShell -ArgumentList "C:\path\task1.ps1 -arg1 'x1' -arg2 'x2'" -RedirectStandardError task1.txt -wait
Start-Process -FilePath PowerShell -ArgumentList "C:\path\task2.ps1 -arg1 'x3'" -RedirectStandardError task2.txt -wait
Start-Process -FilePath PowerShell -ArgumentList "C:\path\task1.ps1 -arg1 'x4' -arg2 'x5'" -RedirectStandardError task3.txt -wait
Start-Process -FilePath PowerShell -ArgumentList "C:\path\task2.ps1 -arg1 'x6'" -RedirectStandardError task4.txt -wait

```

and taskStarter.ps1

```
Start-Process -FilePath PowerShell -ArgumentList "C:\path\taskList.ps1" -RedirectStandardError taskErr.txt -RedirectStandardOutput taskOut.txt

```

When I run taskStarter.ps1 from a powershell console under my account it works well - all tasks are executing one after another and *-wait* param in taskList.ps1 is obeyed. However when I then run the same taskStarter.ps1 under new account all tasks are running together and *-wait* is ignored.