Main script shell