Private/Get-ClobNotification.ps1

function Get-ClobNotification {
  [CmdletBinding()]
  param (
    [Parameter()]
    [ValidateSet('table', 'json')]
    [string]$Output = 'table'
  )

  process {
    $client = [ClobClient]::new()
    $config = [PolymarketConfig]::Load()
    if (!$config.ContainsKey('api_key')) { throw "API credentials not found." }
    $client.SetCredentials($config['api_key'], $config['api_secret'], $config['api_passphrase'])

    $result = $client.GetNotifications()
    [PolymarketOutput]::Format($result, $Output)
  }
}