public override void ExecuteCmdlet() { if (string.IsNullOrEmpty(Name)) { WriteObject(DataLakeAnalyticsClient.ListFirewallRules(ResourceGroupName, Account) .Select(element => new DataLakeAnalyticsFirewallRule(element)) .ToList(), true); } else { WriteObject(new DataLakeAnalyticsFirewallRule(DataLakeAnalyticsClient.GetFirewallRule(ResourceGroupName, Account, Name))); } }