PowerShell and interactive external programs

Posted by CC on Stack Overflow See other posts from Stack Overflow or by CC
Published on 2010-04-23T05:10:10Z Indexed on 2010/04/23 5:13 UTC
Read the original article Hit count: 256

Filed under:

Hi all

I'm attempting to write a PowerShell script that, among other things, runs two external programs, harvesting the output of one and providing it to the other.

The problem is that the second program is interactive and asks for:
- a password
- an option (1, 2, or 3)
- an option (Y or N)
- output of external program 1

Note also that this is on XP with PowerShell v1 and .net v2.0 (no I can't upgrade)

Any ideas how I would do this?

CC

© Stack Overflow or respective owner

Related posts about powershell