For now, importing scripts in custom maps is not supported. This may change in the future.
In the meantime, you may add custom functionality with premade scripts using the PrefabScript tag.
PrefabScript
See Prefab Scripts for more information.