http://www.perlmonks.org?node_id=1059796


in reply to Re^3: Use a perl variable on a command that prompts for input
in thread Use a perl variable on a command that prompts for input

I did try it in the regular console and it returned with

an error occured (code 0x80070006): The handle is invalid.

The problem with this is it prompts for the pin, and then prompts to confirm.