batch script to apply the realized distribution clip