exportDepthAndMask command not working via console (works in GUI)

Hi @OndrejTrhan ,
This solution worked. Thank you very much!