#include <constants.au3> $cmd = 'gwmi win32_process -credential lap -Filter "Name = ''explorer.exe''" -cn 192.168.0.16 | %{$_.GetOwner()} |select user' $1 = 'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe ' & _ '-command . ''' & @ScriptDir & "\" & 'test.ps1''' $powerShell = Run($1, '', @SW_SHOW, $STDERR_CHILD + $STDOUT_CHILD + $STDIN_CHILD) $output = "" While 1 $output &= StdoutRead($powerShell) If @error Then ExitLoop WEnd MsgBox(0, "", $output) In sh