opening program command

Hi I was hoping someone could tell me how in a program someone could choose an option and it would make another program open.