Scrpit to enable or disable interface list

How can i run those terminal commands by a script ?