Memory used invoking script from wM can't be recove

Somebody just told me that it is a bad practice to invoke shell scripts from webMethods because the memory that is used can’t be recovered. Does anybody know if that is true? Are there any other reasons that invoking scripts is a bad practice?