Running Script with a Switch

Maybe this is the way to go?