Is it possible to programatically modify the properties of a existing Stored Query Collection?

What happens if you use dopusrt to replace the stored query but using the new query? I imagine that might work.

Offtopic, but this script fills the gap between explicit Opus labels and Everything, bringing instant results.