I mean, yeah, you can definitely set up a command to do it for you, but drop the attitude, you could have asked nicely, instead you chose to sound pretentious, if you know that much about programming do it yourself next time.
!addcom !turn -ul=mod -a=!editcom $(2) \-ul=$(eval if(`$(1)`==`on`){`everyone`} if(`$(1)`==`off`){`owner`})
Syntax:
!turn on !commandName
— “enable” !commandName
!turn off !commandName
— “disable” !commandName