Problem statement:
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[1]
$object | Add-Member –MemberType NoteProperty –Name Property2 –Value $temp[0]
$object | Add-Member –MemberType NoteProperty –Name Property3 –Value $temp[2]
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.