child-shell icon indicating copy to clipboard operation
child-shell copied to clipboard

How to send input to ps script user prompts after invoking?

Open ericbrumfield opened this issue 4 years ago • 0 comments

It may just be me, but I'm not seeing a way to send input into the invoked commands with this utility using ps.streams.stdin.write(); as an example. The use case I was stuck on here was when running cmdlet:

Remove-VpnConnection -N "TestVpnConnectionName" -AllUserConnection -Confirm:$false

I'm not a nodejs guru, but in the past I've been able to pass in Yes/No to prompts when using exec/spawn in node via the stdio events, but no events are being raised that I can see. Appreciate any help here.

ericbrumfield avatar Mar 10 '20 18:03 ericbrumfield