Hi,
When I call CMD as a different user in powershell, can I pass commands from Powershell to the CMD for execution?
Example:
Start-Process cmd -Credential (Get-Credential "$env:USERDNSDOMAIN\")
Once the window is open, I would like for it to process the command in the new CMD window:
Echo Hello World!
Thank you!