Dynamic Test Runner - Cucumber Appium

Hi,
I am trying to write a dynamic Test Runner in JUnit. However, I am not finding any documentation regarding the steps on how to. Is there a way I can write a function that sets up the Cucumber Options instead of using the typical @CucumberOptions approach?
Thank you