Based on mesh_ply.py from Blender Mitsuba Add-On (tested in Blender 2.9)
- set path to mitsuba2 bin folder (under render properties tab)
- set path to project (where to export) folder (under render properties tab)
- hit render button
Render progress and info messages are printed the console (enable the console under Window -> Toggle System Console).