Intelligent guidance and control for wind shear encounter