string gpmcPath = @"C:\Windows\System32\gpmc.msc";
if (!System.IO.File.Exists(gpmcPath)) throw new Exception("GPMC not installed. Install RSAT.");
if (!string.IsNullOrEmpty(domain)) psi.Arguments = $"/domain=domain";
var psi = new ProcessStartInfo
string gpmcPath = @"C:\Windows\System32\gpmc.msc";
if (!System.IO.File.Exists(gpmcPath)) throw new Exception("GPMC not installed. Install RSAT.");
if (!string.IsNullOrEmpty(domain)) psi.Arguments = $"/domain=domain";
var psi = new ProcessStartInfo