Private/WhatsUpGold/_GetWUGWhoAmI.ps1

function _GetWUGWhoAmI {
    [CmdletBinding()]
    param (
        [switch]$ShowQuery
    )
    begin {
        $Method = 'Get'
        $APICall = 'product/whoAmI'
    }
    process {
        # This part is generic for most queries except for the line that is similar to: $Data += $PagedData.data.****
        if ($ShowQuery) {
            Write-Host $APICall
        }
        $Data = _InvokeSTTWUGRestMethod -APICall $APICall -Method $Method
    }
    end {
        return $Data.data
    }
}