3ds Max comes with a scripting language called MAXScript. The API for the scripting engine is included in the 3ds Max SDK in the sub-folder /maxscrpt (note the missing 'i') and in the import library Maxscrpt.dll.
/maxscrpt
Maxscrpt