in reply to Re: Pass expected input to Windows program
in thread Pass expected input to Windows program

It didn't work for me. I tried this:
open(PROGRAM, '| runas /user:username "net localgroup administrators +%username%@%userdnsdomain% /ADD"'); print PROGRAM "password\n";
This is the output:

Enter password for username:RUNAS ERROR: Unable to accept input