in reply to running perl scripts as admin

I am not really sure about what you want to do, but you might be interested in the CreateProcessAsUser() function from Win32::AdminMisc by Dave Roth (see Win32 AdminMisc FAQ).

Christian Lemburg
Brainbench MVP for Perl
http://www.brainbench.com