/// <summary> /// BeginProcessing method. /// </summary> protected override void BeginProcessing() { if (this.HasParameter("AccountExpires") && AccountNeverExpires.IsPresent) { InvalidParametersException ex = new InvalidParametersException("AccountExpires", "AccountNeverExpires"); ThrowTerminatingError(ex.MakeErrorRecord()); } sam = new Sam(); }