The global temp folder ("/temp") has been used to hold temporary files.
However, many operating systems and some software automatically delete the contents of this directory at bootup or at regular intervals, leaving the directory itself intact. Beside those also some companies implement polices enforcing regular cleaning up of the global temp folder. Therefore files stored in a global temp folder during the troubleshooting activities, with data collected manually or via the script, may get removed unexpectedly while not all the required the data is preserved.
With above in mind it would be more handy if the scripts or steps to be used on linux hosts, provided to users, utilize i.e.: /product/temp folder to store in the temporary data used for troubleshooting as this less likely get removed at restart of the host.