How can I bootstrap Public role to have create permissions?

Okay, I made a completely fresh bootstrap.js with just your script and it seems to have worked:

Though it is a bit aggressive. What if I want just the create?

I think I have to modify:

  const permissions = await strapi
    .query("permission", "users-permissions")
    .find({ type: "application", role: role.id });

But not sure how. Am I supposed to add another attribute in find()?