public override void ExecuteCmdlet() { if (ParameterSetName.Equals(BlobParameterSetName, StringComparison.InvariantCultureIgnoreCase)) { WriteObject(new PSStorageAccountInfo(DataLakeAnalyticsClient.GetStorageAccount(ResourceGroupName, Account, Blob))); } else if ((ParameterSetName.Equals(DataLakeParameterSetName, StringComparison.InvariantCultureIgnoreCase))) { WriteObject(new PSDataLakeStoreAccountInfo(DataLakeAnalyticsClient.GetDataLakeStoreAccount(ResourceGroupName, Account, DataLakeStore))); } else { WriteObject(DataLakeAnalyticsClient.GetAllDataSources(ResourceGroupName, Account), true); } }