protected override void EndProcessing() { if (_setInfo.Count > 0) { WriteVerbose("Setting token privileges on the current process"); if (ShouldProcess(String.Join(", ", _setInfo.Keys), $"{Action} the specified privilege(s)")) { PrivilegeHelper.SetTokenPrivileges(_process, _setInfo); } } _process.Dispose(); }