Powershell: opening the cmd.exe and then running commands on cmd

Viewed 9896

I am trying to open the command prompt using powershell and then run an exe file with parameters.

Start-Process cmd.exe -Credential $credential

Once cmd opens I want to run remotely an exe, e.g:

abc.exe -a arg1 -h arg2

How do I do the second part with Powershell, using the same credentials?

1 Answers
Related