DPL II decoding requires the correct decoder to function - there are simply too many variables for this to go in a script IMHO. Maybe I am wrong, but I honestly don't think so.
Why bother with a script when you can simply dial up one of the many DPL II decoder options in the amplifiers?
There are the following options:
DPL
Matrix (These are pretty much the same thing, with DPL/Matrix essentially being LCRS type de/encoding with monophonic rears)
Movie (More aggressive routing to centre channel than Music)
Music