Process yourApp = new Process();
yourApp.StartInfo.FileName = @"Path/to/your/app";
yourApp.StartInfo.UseShellExecute = true;
yourApp.StartInfo.Verb = "runas";
System.Security.SecureString passwd = new System.Security.SecureString();
var __passwd = "yourpasswd";
foreach(char c in __passwd)
{
passwd.AppendChar(c);
}
//yourApp.StartInfo.UserName = "Administrator"; <== Not sure if you need this
yourApp.StartInfo.Password = passwd;
yourApp.StartInfo.Domain = "yourdomain";
yourApp.Start();
This is a C# snippet. I am not sure if it's what you need..PS: didn't test it.