- What is the version of the operating system the script is run upon
- Is the computer in a domain environment or is it in a workgroup
- Is the script running as a normal user, or elevated
- Is the targeted remote computer available
- What is the version of Windows PowerShell that is running
- Whether the script is run in the Windows PowerShell Console or if it is run in the Integrated Scripting Environment
- The status of the Windows Firewall
- Is the required module loaded
- Is a required parameter supplied
Thank-you Ed Wilson
http://blogs.msdn.com/microsoft_press/archive/2009/08/10/ed-wilson-lessons-learned-from-testing-200-scripts.aspx