potentially followed by disaster.
I always recommend a failsafe:
#!/usr/bin/bash
qvm-shutdown --wait sys-usb
sleep 10
qvm-prefs sys-usb template <NEW_TEMPLATE>
qvm-start sys-usb
## Delete this section after testing
sleep 120
qvm-shutdown sys-usb
sleep 10
qvm-prefs sys-usb template <OLD_TEMPLATE>
sleep 5
qvm-start sys-usb
## Delete this section after testing
That gives you 2 minutes to test out the new template backed sys-usb,
and will then revert to the old.
Once you are happy you can delete, or comment out, the testing section, and
rerun the script to make the change permanent.