How to run interactive commands in another application window from powershell
问题 I have another command line program which I invoke from my powershell script and would like to run some interactive commands in that window once it is opened from power shell. In other words - I do a Invoke-Item $link_to_app which opens up the interactive command line for that application and now I would like to use the application specific commands from within powershell scripts. e.g. app.exe -help to invoke the help command of the app.exe . Any pointers would help. Thanks! 回答1: Try this: