Moduleinstaller.install_custom_fields

Hi,

I am new to SugarCRM and I'm trying to learn the basics of it by going through the documentation available.

The link at

http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_7.9/Data_Framework/Vardefs/Manually_Crea… 

has the following code snippet on how to programatically create custom fields. Does anyone know where to run such code in Sugar?

    $moduleInstaller = new ModuleInstaller();    $moduleInstaller->install_custom_fields($fields);

Regards,

Rafael