Add force changing with graphics settings?

These are the console commands im using when I set the graphics

sg.ShadowQuality

sg.PostProcessQuality

r.ScreenPercentage

sg.TextureQuality

sg.EffectsQuality

r.DetailMode

r.PostProcessAAQuality