I have a function that has 5 requqired parameters and 2 optional ones. So a user can input 5-7 parameters and they are stored inside of an array. How can I pass those values