New Properties and templater prompts and commands?

I love app.fileManager.processFrontMatter but can it be used to create new notes from a template? I unsuccessfully tried. Maybe an example may help.

I have used app.fileManager.processFrontMatter to recalculate formulas and write the results back in properties such as numFigures, numCallouts, etc., based on changes in the notes themselves.