protected override void ProcessRecord()
 {
     if (SavedSearchId != null)
     {
         WriteObject(OperationalInsightsClient.GetSavedSearch(ResourceGroupName, WorkspaceName, SavedSearchId), true);
     }
     else
     {
         WriteObject(OperationalInsightsClient.GetSavedSearches(ResourceGroupName, WorkspaceName), true);
     }
 }