Since we've had these M1 Mac minis and the latest Monterey updates, performing erase installs on these machines has become a somewhat manual process. We use to have a script in JAMF which would get called by a trigger and that worked just fine with 12.1.
Now when we try that we get "Running in Rosetta 2 is not supported". If I run the same script at the command line, it will run fine, so I can only assume it's JAMF's Helper app which is Intel and not M1 compiled and causing this problem.