Passing a UA Job to Get-UAJobOutput inside of an automation script in PS (Core) fails

Product: PowerShell Universal
Version: 1.5.12

In the current version, when running the code below inside of a UA script, I get the error below that:

$JobOutput = Get-UAJobOutput -Job $Job
[4:18:16 PM] [ERR] Cannot bind parameter 'Job'. Cannot convert value "UniversalAutomation.Job" to type "UniversalAutomation.Job". Error: "Cannot convert the "UniversalAutomation.Job" value of type "Deserialized.UniversalAutomation.Job" to type "UniversalAutomation.Job"." 

Now, I know that when pwsh.exe runs powershell code (for compat) like when using the -UseWindowsPowerShell parameter, it will pass back Deserialized data, but I’m not sure why this is happening here. Maybe I’m missing something?