How would i code the below to make interactive menus using $iif any help would be appreciated

Code:
 ..Turn on script: .enable #script | echo -a Script on 
  ..Turn off script: .disable #script | echo -a Script OFF