Revit version on pushbutton

I am using dynamo script *.dyn in some of my ribbon. But when I use different version of revit, it has some problems becoz dynamo and package versions are different.
I may try to create dyanmo script for different revit i.e. script_2020.dyn, script_2022.dyn
I’ve looked in “max_revit_version” inside bundle.yaml but it seems it cannot control which script I run.
Anyone has any idea?