Add cast script to manage cast file