How to Set Override the scaling mode set by games and program

Hi all,
I am trying to set “Override the scaling mode set by games and program” by nvapi ,but I didn’t found it.
Is there any way to do it?