Scripting is on the border of the programming. There are 4 cases which we should see:
- Not professional sysadm, not professional programmer. They are asking mostly non-sense questions, which are harder to decipher, as to solve. Anyways, because they aren't professional system administrators, these questions are off-topic.
- Not professional sysadm, but professional programmer. If they ask for a script, they want in most cases to learn the operating system, or one of its scripting interface. These questions can be off-topic (sometimes migratable to SO, sometimes not), or on-topic, it depends on the details.
- Professional sysadm, but not professional programmer. They ask for scripts very rarely, and their systems tends to have fewer scripts, they favorize the complex software solutions against the scripted toolkit-like solutions. If they ask, their questions are mostly high-level and interesting.
- Professional sysadm, and professional programmer. They won't everProbably this group has the smallest chance to ask any codefor a script fragment from you. If yesBut if they do, their questions will be interestedinteresting and probably ontopic.
As you can see, the situation is similar to your last bigger destruction, the control panel case. You found a group of questions which is offtopic or simply low level in most cases, but not always.
If you construct a new rule, which destroys every scripting question asking for scripts or script snippets, you will destroy a lot of high quality questions as well. You shouldn't do this, it is a massive content destruction, especially if you apply the new rule retroactively.