Automic's Windows job (JOBS.WIN object) which has to execute a PowerShell Script with a section for New-Object PSObject
$object = New-Object –TypeName PSObject
$object | Add-Member –MemberType NoteProperty –Name Property1 –Value $temp
$object | Add-Member –MemberType NoteProperty –Name Property2 –Value $temp
$object | Add-Member –MemberType NoteProperty –Name Property3 –Value $temp
I can run the Powershell script via PowerShell ISE (from the same server) successfully however Automic is not doing it in same way, instead REP shows a message "Cannot find type [?TypeName]: verify that the assembly containing this type is loaded."
Has anybody encountered this before? Please guide.