Author Posts

June 11, 2018 at 1:07 pm

I have to automate the working of a console application (testapp.exe, written in c++).
The application have different options:
1. Get computer name
2. List services in machine
3. List running applications in machine

The application shows prompt to enter option after the application starts.

Is it possible to automate the application execution???

June 11, 2018 at 1:19 pm

There's various examples out there using Invoke-Expression to fire cmd.exe based commands. I'd recommend taking a look at some of them. Something like this:

Invoke-Expression "mstsc.exe /v:$Connect $dimensions"