protected override void ProcessRecord()
 {
     this.ConfirmAction(
         this.Force.IsPresent,
         string.Format(CultureInfo.CurrentCulture, Resources.RemovingAzureAutomationResourceWarning, this.Name),
         string.Format(CultureInfo.CurrentCulture, Resources.RemoveAzureAutomationResourceDescription, this.Name),
         this.Name,
         () =>
         {
             AutomationClient.DeleteAutomationAccount(this.ResourceGroupName, this.Name);
         });
 }
 public override void ExecuteCmdlet()
 {
     this.ConfirmAction(
         this.Force.IsPresent,
         string.Format(CultureInfo.CurrentCulture, Resources.RemovingAzureAutomationResourceWarning, this.Name),
         string.Format(CultureInfo.CurrentCulture, Resources.RemoveAzureAutomationResourceDescription, this.Name),
         this.Name,
         () =>
     {
         AutomationClient.DeleteAutomationAccount(this.Name);
     });
 }