my $User="Somebody"; my $Pass="ThisIsInsecure!"; my $Program_to_run="notepad.exe"; my $result=`echo $Pass|RunAs /User:$User $Program_to_run`;