functions/Get-ZGVersion.ps1

function Get-ZGVersion {
    param ()

    $response = Invoke-ZGRequest -Method "POST" -Body @{
        "method"  = "apiinfo.version"
        "params"  = @{}
        "auth"    = $script:RequestAuth
    } 

    return $response.result
}