in reply to Pass expected input to Windows program
The Perl module Win32::AdminMisc has API's for stuff like
CreateProcessAsUser and more. This is very easy to implement, and gives you all tricks needed to solves your problem.
In Section
Seekers of Perl Wisdom