Hello,
I create PowerShell script to monitor last hotfix install date, the script is running well when execution mode set to local like below pic we can see the result on kb and dt variables.

When set execution mode to 'remote host' i got error 'not defined'

and if i assign to the host, i got error 'PowerShell script error. Scripting Error: Script does not contain the expected parameters or is improperly formatted. 'kb', 'dt' missing.'

Anyone know how to fix this?