Dynamically Creating Multiple Sub-Folders

What I’m trying to do

I am trying to create a folder structure when I create new workshops in obsidian.

Example:

I just started a Novel-in-a-Year workshop. I created a button on my homepage that will use the New Workshop template. The template creates the main folder for the workshop as I create the info page.

What I would like to do is have the template also create sub-folders for Handouts, Speaker Notes, etc. to the new Novel-in-a-Year folder.

Creating the primary folder works fine, but I am at a loss as to how to dynamically add the subfolders.

Things I have tried

My current code is this…

let qcFileName = await tp.system.prompt(“Note Title”)
let titleName = " Workshop - " + qcFileName
await tp.file.rename(titleName)
let baseFolder = “/Workshops/”
let newFolder = ${baseFolder}${titleName}/
await tp.file.move(newFolder + titleName);

This works to create the new workshop folder within “Workshops”. How do I reference the new folder, and create subfolders within it?

Thanks in advance.