Private/SetIsRecieved.ps1

Function SetIsReceived {
    Param (
        [parameter(ValueFromPipeline=$True)]
        [rsjob]$RSJob,
        [switch]$SetTrue
    )
    Begin{
        $Flags = 'nonpublic','instance','static'
    }    
    Process {
        If ($PSVersionTable.PSEdition -eq 'Core') {
            $RSJob.IsReceived = $SetTrue.ToBool()
        }
        Else {
            $Field = $RSJob.gettype().GetField('IsReceived',$Flags)
            $Field.SetValue($RSJob,$SetTrue.ToBool())
        }
    }
}