Automated building script