How to run a script within Sonarr

You don’t, at least not on the docker side as per your screenshots.
At this point, the easiest fix would be to just use /share both on the left and right in those Shared Foldrs settings, as well as a /config mount for sonarr and nothing else. Other than that, I have no clue where qBit is supposed to save its settings, and I don’t even know what “downloads2” is supposed to do.

Here’s a similar case to yours, it’s more or less changing /DATA with /share and that should do it: How to make sonarr stop creating duplicates of my files - #13 by Thirrian