ranking batch script