The script uses ppArith to apply the nominated operation to two (note: no unary operations) detrends from the database, pushing the result in as a new detrend. The script will iterate over the imfiles (haven't tested it with multiple imfiles yet though). This iteration is completely serial; no attempt is made at parallelisation, since it is expected that this command will not be used frequently.