can someone help me to do sort of a power switch?

When i right click while sneaking exectes command
Continue to help post