public override void ExecuteCmdlet() { if (ParameterSetName.Equals(BlobParameterSetName, StringComparison.InvariantCultureIgnoreCase)) { WriteObject(DataLakeAnalyticsClient.GetStorageAccount(ResourceGroupName, Account, Blob)); } else if ((ParameterSetName.Equals(DataLakeParameterSetName, StringComparison.InvariantCultureIgnoreCase))) { WriteObject(DataLakeAnalyticsClient.GetDataLakeStoreAccount(ResourceGroupName, Account, DataLakeStore)); } else { if (DataSource == DataLakeAnalyticsEnums.DataSourceType.DataLakeStore) { WriteObject(DataLakeAnalyticsClient.ListDataLakeStoreAccounts(ResourceGroupName, Account), true); } else { WriteObject(DataLakeAnalyticsClient.ListStorageAccounts(ResourceGroupName, Account), true); } } }