Editing a system preferences .plist file (not user preferences .plist file)
defaults can also work on plist files specified on the command line, so you can use
sudo defaults write /Library/Preferences/om.xyz.app.plist key value