Change video settings by script's

Hello. How can i change the video resolution and all other video settings in scripts?

Thanks.