Add Definition of scan class

Hi,
it’s possible to define a new scan class by script?

thanks.