The script would require some extra work and functionality, to make what you're trying to do possible with a single adjustment layer.
I think the quickest way to get what you want first duplicate everything (create a new group for your existing contents, then Alt+drag that group), then duplicate the adjustment layer in the new group, until you have as many adjustment layers as normal layers.
Then select the first adjustment layer, and the first regular layer, hit Ctrl+E to rasterize.
Do this for each layer.
Keep in mind that your colors will look wrong with multiple hue/sat adjustment layers, but as soon as your merge, the colors will be correct.