How would I make a macro with two different functions?

Basically I want to condense a /run and a /cast into one button

Something like:
/run [btn:1] C_TradeSkillUI.OpenTradeSkill(333)
/cast [btn:2] Disenchant

I know the btn modifier doesn’t work with /run as written above and I know I could just use /cast [btn:1] Enchanting to open the UI but I am just using these as examples for the overall functionality I am looking for.

Is it possible to do something like the above macro example I gave?

Can I interest you in some SecureCmdOptionParse?

/run if SecureCmdOptionParse("[btn:1]") then C_TradeSkillUI.OpenTradeSkill(333) end
/cast [btn:2] Disenchant
1 Like

That did it! TY SO MUCH!