Script to prepare environment and launch app