Hi.
The only general-purpose solution I know of is
MagniComp - SysInfo(TM) Total System and Storage Asset Information but it is not free, and I doubt that it is a script.
In the Linux world, there are:
Sysinfo - A Linux Box System Information Retriever - Developer Community
and
Linux Post-Install procedures (look for script
shavlik)
You might be able to adapt them to various unix boxes.
A search using appropriate terms with Google might produce more possibilities.
For a novice in scripting, I would call this project very ambitious. Best wishes ... cheers, drl