Rendering in EXR using CMD is rendering black passes

So a really fun thing is happening in my project file. Whenever I render locally through the project, it goes through, rendering all the passes without any issues. But when it’s time to render the EXACT SAME project file through cmd render, the files are much smaller and well, the custom passes are blank.

This is the command I’m using:

D:/UE_5.3/Engine/Binaries/Win64/UnrealEditor-Cmd.exe /path/to/project /path/to/level -game -MoviePipelineConfig=/path/to/queue -MovieFormat=EXR -CaptureFramesInHDR - CustomRenderPasses=FinalImage -noloadingscreen -forceres -MovieCinematicMode=yes -RenderOffscreen -StdOut -unattended -allowStdOutLogVerbosity

AND

D:/UE_5.3/Engine/Binaries/Win64/UnrealEditor-Cmd.exe /path/to/project /path/to/level -game -MoviePipelineConfig=/path/to/queue -noloadingscreen -forceres -MovieCinematicMode=yes -RenderOffscreen -StdOut -unattended -allowStdOutLogVerbosity

Here’s the size comparison:

The top one is CMD Render and the bottom one is Local Render from within the project. I have tested these two commands and both have given me the exact same result.

I would really appreciate if anyone has any clues as to what could be causing this.
Thanks.

Unreal Version 5.3.1

Upon further testing, I have since found out that Object IDs are not rendering in command line renderer in Unreal, regardless of the format type. I am unable to render the Object ID passes even in png format.

It is so unfortunate that the documentation is not covering this information at all. (Or even if it is, this is not easily accessible)

Just in case anyone is looking for a solution, a workaround is explained here: link

Hope this helps!