How to reload a color scheme?

Hello,
I am wondering if there is a way to “refresh” a color scheme.
I wanted to modify a color scheme programatically from a script (in .colors file), and then somehow reload it so the changes take effect.
I know there is plasma-apply-colorscheme tool, but sadly it looks like it doesn’t do anything if the provided color scheme is the same as currently used one. A crude solution would be to switch to another scheme and then switch back on immediately, but it’s not ideal since the the brief change results in different colors flashing for a split second.