I an launching local background job(s) with the Start-Job cmdlet, and -FilePath to invoke a script.
The script/job run successfully. I launch a number of these during processing. At a later point I retrieve the jobs, by ID.
If I issue the Retrieve-Job cmdlet, the results are displayed to the console, as I expect. However, I want to capture the results in a variable and process them.
The cmdlet, $J = Receive-Job -ID XX, returns $J as a System.DateTime object, but the expected output from the job is written to the console.
???