In fact, test, test, and test again, under all sorts of conditions and on different computers, (depending what scripts you are talking about). Try your best to break the script and get colleagues to do the same, because if any of you can, then you can bet that it will break in normal usage as well.
Error trap it. Make sure that if any error occurs the script doesn't just hang or lock up, but exits.
There's no quick way to do this, and the downside is your time and effort.
Mark
<span style="'line-height:" 115%; font-family: "Times New Roman","serif"; font-size: 12pt; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-GB; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;'>How could you ensure that all of your scripts will run exactly how you
want them to? And is there a downside to this?

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic