Can I change IES texture dynamically?

I would like to change IES Texture dynamically.
For example, there are sample1.ies and sample2.ies, I want to swap IES texture.
I think if it’s possible to specify IES texture as file path, I can do that. But, I don’t know how to do that.
Can anyone help me out?