I have never personally used this module but would Win32::IntAuth work?
In reply to Re: Using Admin Passwords in Script by tokpela in thread Using Admin Passwords in Script by OzVegan