I'm afraid that vSphere Replication doesn't have a public API.
The script from Alan looks at Events generated by vSphere Replication, and doesn't "talk" to vSphere Replication itself.
Unless vSphere Replication also produces events, on a regular basis, that report the status of the participating ESXi nodes, I don't think it will be possible to retrieve the Status from somewhere else.
Since I don't have vSphere Replication running, I can't check if there are such events.
Perhaps you could have a look in your environment, and check if there is anything promising in there.
You can go back further in time by changing the Start value.
Get-VIEvent -Start (Get-Date).AddDays(-1) -MaxSamples ([int]::MaxValue) |
where{$_.EventTypeId -match "hbr|rpo" } |
Select CreatedTime, @{N='Type';E={$_.EvenTypeId}},FullFormattedMessage