When triggering a script in psu from an app/dashboard information about the job that was started is no longer returning on completion of the command. If I specify -wait or | Wait-PSUJob -Integrated I get an error stating the job is null “Cannot bind argument to parameter ‘Job’ because it is null.”
Seems as though Tee-Object isn’t getting the job variable value
Workaround
I have found that invoking the script and using powershell’s “Start-Sleep” followed by retrieving the job works but naturally this relies on me setting an arbitrary sleep value which may not be long enough or way to long depending on my query.
So I’m not the only one who has encountered this.
Large parts of my dashboard could no longer be used at all.
The workaround worked on a test basis, but since I would have had to rewrite so much code, it wasn’t a real option for me and I had to downgrade back to version 4.1.5.
But at least that’s why I signed up here, so that’s something positive.