Yep a defaults write command. Its a User individual preference, so will need to be pushed to each User account...
/usr/bin/defaults write /Users/<USERNAME>/Library/Preferences/com.apple.dock wvous-tr-corner -int 6
/usr/bin/defaults write /Users/<USERNAME>/Library/Preferences/com.apple.dock wvous-tr-modifier -int 0
The last bit is an Integer -int 6 Which will disable the screensaver. You can work these out by setting one and then doing..
defaults read com.apple.dock | grep wvous
It will show you the setting that you have just made.
I am using this with Monterey, and it is working.
This article gives more info on the codes required.
Make sure if you run the script as root that you are changing the settings for the User, and that the setting change is given the correct permissions for the User to access them.