I know audacity only through linux. A quick look at the manual implies that it will do what you want but it specifically says that batch jobs should be run with sox (the swiss army knife of audio processors).