Answer the program message with powershell

Hi everybody

I have a program with text input file and be automated by powershell scripts.

When the program runs out, it give a message which must be answered until the powershell go to next run

But i don’t know how can answer this ,message.or detect it.

I see you posted this same question to another forum, which I and another responded to.

See the responses.