How do you do the same principle for this

Control Menu
.Auto Op ( %auto.op )
..On: { .aop on | set %auto.op On | echo -a 14Auto Op is now9 On }
..Off: { .aop off | set %auto.op Off | echo -a 14Auto Op is now9 Off }
.Auto Voice ( %auto.voice )
..On: { .avoice on | set %auto.voice On | echo -a 14Auto Voice is now9 On }
..Off: { .avoice off | set %auto.voice Off | echo -a 14Auto Voice is now9 Off }
.Ignore ( %ignore )
..On: { .ignore on | set %ignore On | echo -a 14Ignore is now9 On }
..Off: { .ignore off | set %ignore Off | echo -a 14Ignore is now9 Off }
.Notify ( %notify )
..On: { .notify on | set %notify On | echo -a 14Notify is now9 On }
..Off: { .notify off | set %notify Off | echo -a 14Notify is now9 Off }
.Protect ( %protect )
..On: { .protect on | set %protect On | echo -a 14Protect is now9 On }
..Off: { .protect off | set %protect Off | echo -a 14Protect is now9 Off }

I'm struggling too make it, i figured i would need $aop for the autovoice but not sure how to finish the line like the channel modes is done.

If you or anyone could help me please.