Run CMD Command through PowerShell -
i trying run command in cmd, run in through powershell.
invoke-item
opens cmd, don't how pass in program.exe argument > file.txt
to run cmd.exe powershell, don't need use invoke-item e.g.:
cmd /c c:\windows\system32\ipconfig > file.txt
however, why not run?
ipconfig > file.txt
Comments
Post a Comment