/// <summary>
 /// Executes the get workflow run history command
 /// </summary>
 public override void ExecuteCmdlet()
 {
     base.ExecuteCmdlet();
     if (string.IsNullOrEmpty(this.RunName))
     {
         var enumerator = LogicAppClient.GetWorkflowRuns(this.ResourceGroupName, this.Name).GetEnumerator();
         this.WriteObject(enumerator.ToIEnumerable <WorkflowRun>(), true);
     }
     else
     {
         this.WriteObject(LogicAppClient.GetWorkflowRun(this.ResourceGroupName, this.Name, this.RunName), true);
     }
 }