I just tried to find out what the Blizzard UI does when you click the "Apply" button. This seems to work for me:
Code:
OptionsFrameOkay_OnClick(VideoOptionsFrame, 1);
But it does not take into account any changed cvars. So the next step would be to find out what happens when you toggle the "display mode" drop down in the options...