Pakistan thrash West Indies by four wickets in 4th ODI