Hi Peter, Thanks for the response.

We also using an exe that worked for us till now. it prints whatever structure & format the pdf file having and also number of copies as the parameter. 
Worked good for a while. few days before this issue started and resolved on its own without any changes.

So due to this mess, i want to avoid third party .exe usages.

Sorry, i can't able to change the existing source code.

Is there any other way. Please let me know it will be very helpful...

Thanks for the responds Dmitry, But i tried in C drive (Cache instance installed location) also. Facing same problem can't able to use $ZF and Pipes. I thought may be instance not having privilege to write on C drive, So tried cache instance location(C:/Intersystems/Ensemble/). But same issue.

Previously one of the server we faced the same problem but after restarted the Ensemble Service with full privilege using Log On. It started to  accept $ZF(-1) and Open cmd command.

I tried the same thing here, but this time i can't able to resolve it.