How to properly disable/enable a number of extensions via command?

Hello, I have no problem disabling/enabling all extensions via command, but if I try doing it for only a selected list (only some extensions), it results in errors in GNOME shell and extensions don’t get disabled properly and become visually glitched, most notably things like Dash to dock, Dash to panel, Blur my shell. I wanna do it through a single command or a script.