How long have you been in therapy - in my experience it starts of as a long slow process but for my own therapy (and its different for everyone) I started to really notice my own progress after 6 months.
Tackling all those underlying issues you talk about can feel like opening it all up and being left with this open wound for a while. You seem to know what your problems are/what this script is saying - its going to take a while to come to terms with it and it feels 'raw' right now.
It's very hard to reprogramme your thoughts - so when you're beating yourself up you are really noticing that you're doing it right now.
I can only say it will diminish over time the more you look after yourself/listen to the real voice and desires inside yourself/be kinder to yourself.
The very act of noticing what's going on when you beat yourself up in your head is part of this process - you hear it/then notice it more/it feels overwhelming for a while/you get angry with the script/it gets a litle less or displaced - and maybe over and over til you hardly notice it.
When i felt really bad and was in therapy I went twice a week - made huge progress when i did.
I cannot stress this enough - being forcedly kind to yourself makes the hugest difference. Going for a coffee/buying cake you like/reading childrens books/snuggling in front of the fire - they sound like nothing but doing what I wanted was a massive part of recovery.
You can't make the script go away until it's ready - it's there to tell you something - its part of the process and its painful but necessary - your brain wouldn't be running it if it didn't need to in order to 'sort' it.
Sorry if this is a bit rushed - i sliced an enormous hole in my hand with a knife an hour ago and I'm trying to put on make up.