High Res Screenshot with custom depth not working in packaged game

Hello all,
I wanted to take a high res screenshot of my character which is working fine in editor after checked the “Render Custom Depth Pass” of the character mesh.
but its not woking in packaged game.
i used a button to take the screenshot and here is my consol command.

HighResShot 3000x2000 50 50 120 500 1 1 1

someone please tell me what i am doing wrong in here.
Thank you in advance.

256420-crash.png

Did you ever figure out the solution to this? I’m facing the same problem but without the error dialog box popping up

Nope, still nothing.