A CLI utility to "check" or "uncheck" "Open Using Rosetta" preference for Apple Silicon macs.
SetArchPrefForURL <path-to-the-app> <x86_64|arm64>
The CLI tool calls a private function _LSSetArchitecturePreferenceForApplicationURL defined in CoreServices.framework. This is same way that Finder.app updates the preference.

