addeffectiveindex - Script command