/// <summary>
        /// Executes the get workflow command
        /// </summary>
        public override void ExecuteCmdlet()
        {
            base.ExecuteCmdlet();

            if (string.IsNullOrEmpty(this.TriggerName))
            {
                this.WriteObject(
                    LogicAppClient.RunWorkflow(this.ResourceGroupName, this.Name,
                                               new RunWorkflowParameters()), true);
            }
            else
            {
                LogicAppClient.RunWorkflowTrigger(this.ResourceGroupName, this.Name, this.TriggerName);
            }
        }