Private/Get-ClobBalance.ps1

function Get-ClobBalance {
  [CmdletBinding()]
  param (
    [Parameter(Mandatory = $true)]
    [string]$ApiKey,
    [Parameter(Mandatory = $true)]
    [string]$ApiSecret,
    [Parameter(Mandatory = $true)]
    [string]$ApiPassphrase,

    [Parameter()]
    [ValidateSet('table', 'json')]
    [string]$Output = 'table'
  )

  process {
    $client = [ClobClient]::new()
    $client.SetCredentials($ApiKey, $ApiSecret, $ApiPassphrase)
    
    $result = $client.GetBalances()
    [PolymarketOutput]::Format($result, $Output)
  }
}