Public/Workflow/Get-IDWorkflowJobReport.ps1

# .ExternalHelp IdentityCommand-help.xml
function Get-IDWorkflowJobReport {
    [CmdletBinding()]
    param(
        [parameter(Mandatory = $true)]
        [ValidateNotNullOrEmpty()]
        [String]$HoursBack
    )

    BEGIN {}#begin

    PROCESS {

        $URI = "$($ISPSSSession.tenant_url)/Task/JobReport`?hoursBack=$($HoursBack | Get-EscapedString)"

        $Request = @{

            'URI'    = $URI
            'Method' = 'POST'

        }

        #Send Request
        Invoke-IDRestMethod @Request

    }#process

    END {}#end

}