Button or Command to save a WIP note and start a new template note

I have a notes folder for all my professional meetings. I’m sure you all have a similar folder (maybe for another use case).

I always hold a “WIP” note, where I write subjects I want to discuss, during the time.
Then, at the meeting itself, I discuss the subjects, summarize the meeting, save the note, and open a new note from a template.

My process is circular of:

  1. Edit the “Next Meeting” note
  2. After the meeting, rename the note to the right title.
  3. Update the “Meeting Time” property to “now”
  4. Create a new “Next Meeting” note from a template in the current folder.

I tried to use Buttons and Templater, but I think Buttons doesn’t support running a complete script of Templater:

Template:

---
CreatedDate: <% tp.date.now("YYYY-MM-DD") %>
MeetingDate: 
---

# Tasks I Worked On
- 

# Things to Discuss
- 

```button
name Complete and Create Next Meeting
type note
action templater
templater-function
templater-function-path .templater-scripts/completeAndCreateNextMeeting.js
\```

<% tp.file.rename("Next Meeting") %>

completeAndCreateNextMeeting.js:

module.exports = async (tp) => {
  // Prompt for a new meeting title
  const newTitle = await tp.system.prompt("Enter the meeting title");

  if (newTitle) {
    // Rename the current file
    await tp.file.rename(newTitle);

    // Set MeetingDate to today's date
    await tp.file.cursor(2, "MeetingDate: " + tp.date.now("YYYY-MM-DD"));

    // Create the next meeting note
    const newNotePath = await tp.file.create_new(
      "Next Meeting",
      "work/one-on-one",
      "1-on-1 Meeting Template"
    );

    // Inform the user
    return `New note created: [[${newNotePath}]]`;
  }
};

Meta Bind is a successor to Buttons. Check the extensive docs for what you’re trying to do.