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?