Private/Format-Result.ps1

function Format-Result {
<#
.SYNOPSIS
    Formats a response from the RiskIQ API
.PARAMETER RESPONSE
    Response object from a RiskIQ API request
#>

    [CmdletBinding()]
    [OutputType()]
    param(
        [Parameter(
            Mandatory = $true,
            Position = 1)]
        [object] $Response
    )
    process {
        # Convert to Json
        ConvertFrom-Json ($Response.Result.Content).ReadAsStringAsync().Result
    }
}