So I assume it is possible for an ISO 9000 environment to allow for ad hoc sed scripts to fix trivial problems, and it would be the specific institution, and not ISO 9000, that is broken (IMHO) if anal rule prevented such utilitarian acts?
The question is what does "ad hoc" mean? Certainly, you can have any such script as part of a procedure as long as it's specified as part of the description of that procedure. Putting some generic statement such as "ad hoc scripts are allowed at any time whenever useful" likely wouldn't do.