How to use button switch to start a program?

Thank you for your reply I should have read through the forum first so i apologize. I am just having difficulty getting this to work properly i appreciate the advice!