Convert from script to installable module