Reads scripts into a dynamic buffer