Comparing Environments
Your best bet is to use :

Discover, Diagnose, and Document ALL Your SQL Servers On Your Coffee Break using SQL Power Doc written by  kendal vandyke

This is written in Powershell.