A Powershell job using the customer interpreter option (selected by the "Customer interpreter" radio button, on the Windows tab of job, see also additional info), ends with status ENDED_OK, but throws the error below after the execution of the Process:
__call_messanger : The term '__call_messanger' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At C:\automic\MAIN\Agents\WIN01\temp\JAAFXJMA.TXT.ps1:4 char:1 + __call_messanger "E" "0" + ~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (__call_messanger:String) [], CommandNotFoundExcept ion + FullyQualifiedErrorId : CommandNotFoundException
Windows Agent
This is caused by the use of the INC HEADER.WINDOWS.PWSH.HEAD in the HEADER.WINDOWS or TRAILER.WINDOWS.PWSH.END in the TRAILER.WINDOWS objects in Client 0
Prior to 21.0.8 HF3:
Beginning in 21.0.8 HF3 these lines are commented out by default in the HEADER/TRAILER.WINDOWS object in client 0.
This modification will not adversely affect the behavior if only the Custom Interpreter is used. If the UC_EXT_INTEPRETERS_WINDOWS VARA and the *_EXT_INTERPRETERS script functions are used a decision may need to be made on how to initiate the use of Powershell scripts.
This shows where the Customer interpreter is selected: