To create a quick preview of a scene

Hi
I need to create a quick preview of a 3DScene and save it as a jpg image to disk. The best way would be using the winget "save 3D view". I can't find any description or example how to use python to create the preview and save to disk. Is it possible to control this function programmatically? Alternatively, is there any other quick way to create this view. Thank you
I need to create a quick preview of a 3DScene and save it as a jpg image to disk. The best way would be using the winget "save 3D view". I can't find any description or example how to use python to create the preview and save to disk. Is it possible to control this function programmatically? Alternatively, is there any other quick way to create this view. Thank you