Email Designer Preview Function (in Designer) as Scripted Function?

Hi

The preview function in designers EMail editor is very useful for the developer.

With only specifying a base object, the Email body is generated as a mail.html file in folder /AppData/Local/Temp/DesignerMailPreview/mail.html.

Is it also possible to do this scripted in vb.net or PowersShell?

Regards, René