Is there any way to manipulate the refresh rate on a trial level?

I want to test RT under different refresh rates. I have a 480Hz monitor, and maybe I could do a 60 vs 120 vs 240 vs 480. I am running 2024.1.4 on win11.
I have tried some ways such as “win.refreshHz = xxx” but it does not work.
Thanks for any help.