Any role that can create users can create Super Admin user

When starting with this exact script, unmodified, I’m getting the following error:

TypeError: strapi.get is not a function

Is this for v4 or v5?