Create custom Fields from script instead Studio

Hi all,
is there the possibility to create custom fields using php script instead create manually from Studio?
I must create 30 custom fields for 2 modules, and I would like to made creation easiest than create each one using studio UI.
Can someone help me?
Thank you,

Just now we’ve been having this exact same discussion, have a look