Error when calling 3rd party executable from Powershell

%3CLINGO-SUB%20id%3D%22lingo-sub-901568%22%20slang%3D%22en-US%22%3EError%20when%20calling%203rd%20party%20executable%20from%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-901568%22%20slang%3D%22en-US%22%3E%3CP%3ECurrently%20I%20am%20facing%20issue%20executing%20third%20party%20.exe%20in%20PowerShell.%3C%2FP%3E%3CP%3EEverything%20works%20as%20expected%20along%20with%20below%20error%3C%2FP%3E%3CP%3E%3CSTRONG%3Enode.exe%20%3A%20Exporting%20services%20for%20dispatch...%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3EAt%26nbsp%3B%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E%2B%20%26amp%3B%20%22node%24exe%22%26nbsp%3B%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E%2B%20~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E%2B%20CategoryInfo%20%3A%20NotSpecified%3A%20(Exporting%20services%20for%20dispatch...%3AString)%20%5B%5D%2C%20RemoteException%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E%2B%20FullyQualifiedErrorId%20%3A%20NativeCommandError%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20can%20use%26nbsp%3B2%26gt%3B%24null%20to%20stop%20the%20output%20but%20in%20this%20case%20actual%20errors%20will%20also%20stop%20from%20logging.%3C%2FP%3E%3CP%3EI%20want%20to%20capture%20the%20actual%20error%20can%20somebody%20help%20me%20with%20this%3F%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-901568%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EPowerShell%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Occasional Contributor

Currently I am facing issue executing third party .exe in PowerShell.

Everything works as expected along with below error

node.exe : Exporting services for dispatch...
At 
+ & "node$exe" 
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (Exporting services for dispatch...:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError

 

I can use 2>$null to stop the output but in this case actual errors will also stop from logging.

I want to capture the actual error can somebody help me with this??

 

0 Replies