Replacing can be done with a simple “move” of the other file to the right place, something like:
#!/bin/bash
set -ex
mv "./path/to/DevInfo.plist" "./path/to/Info.plist"
Also worth to mention that using the CLI you can experiment with the config easily on your Mac/Linux: