Changing scalability settings on the fly

For instance:

If I want the player in the the packaged game to be able to lower the shadow settings to 0.

I have them press a button. which runs this console comman: sg.ShadowQuality 0

But it doesnt actually set the shadow settings to 0 or change them at all.
Am I using this wrong?

You don’t need to use console commands, there series of nodes to control quality settings:

But first you need to get game settings with this node as all nodes in link above operates on that object:

Remeber to use “Apply Settings” at end