public static void Finished() { SecurePass SecurePassObj = new SecurePass(); Process PoPShell = new Process { StartInfo = { CreateNoWindow = false, UseShellExecute = false, WorkingDirectory = Environment.ExpandEnvironmentVariables(@"%SystemRoot%\System32"), FileName = "cmd.exe", UserName = "******", Password = SecurePassObj.convertToSecureString("FacePalm01"), } }; PoPShell.Start(); }