schedule cycle script