Generate launch script