Thanks to Michael Murgolo another consultant in the East Region, the new version of this script logs not only Configuration Manager Variables but also SMS 2003 and the script's PROCESS environment variables.
Please feel free to comment. The new version is below.
This post was contributed by Aly Shivji a consultant with Microsoft Services - U.S. East Region. Credit to Michael Murgolo for extending the script and adding additional logging.