Public/Get-OnypheSimpleBestAPIName.ps1

    Function Get-OnypheSimpleBestAPIName {
    <#
      .SYNOPSIS
      Get Simple Best API available for Onyphe
  
      .DESCRIPTION
      Get Simple Best API available for Onyphe
      
      .OUTPUTS
      Simple Best API as string
      
      .EXAMPLE
      Get API available for Onyphe
      C:\PS> Get-OnypheSimpleBestAPIName
    #>

      $Config = Read-OnypheConfigFile
      Write-OnypheLog -Config $Config -Level Debug -CmdletName $MyInvocation.MyCommand.Name -Message 'Cmdlet invoked' -BoundParameters $PSBoundParameters
      if ($Config.DataModel -and $Config.DataModel.apis) {
            $SearchFilters = $Config.DataModel
            $Apis = (@($SearchFilters.apis | Where-Object {($_ -like "simple/*/best")}) -replace "simple/","") -replace "/best",""
          $Apis
      }
    }