Private/Get-KB4ResponseBody.ps1

function Get-KB4ResponseBody
{
    [CmdletBinding()]
    param(
        [Parameter(Mandatory)]
        [pscustomobject] $Response,

        [Parameter()]
        [switch] $Raw
    )

    if ($Raw)
    {
        return $Response
    }

    Get-KB4ResponseData -Body $Response.Body
}