The TechNet Script Center at http://www.microsoft.com/technet/scriptcenter contains numerous examples of Windows PowerShell scripts, as well as some sample documentation templates.
Take a look at the Windows PowerShell™ Scripting Guide (Microsoft Press, 2008).
The Tweakomatic can be downloaded from the TechNet Script Center at http://www.microsoft.com/technet/scriptcenter.
Refer to “How Can I Delete and Manage PDF Files?” at http://www.microsoft.com/technet/scriptcenter/resources/qanda/dec08/hey1229.mspx.
Refer to “How Can I Create a Microsoft Word Document from WMI Information?” at http://www.microsoft.com/technet/scriptcenter/resources/qanda/nov08/hey1111.mspx.
Refer to Windows Scripting with WMI: Self-Paced Learning Guide (Microsoft Press, 2006).
Script documentation guidelines are discussed in the Microsoft Windows 2000 Scripting Guide (Microsoft Press, 2003). This book is available online at http://www.microsoft.com/technet/scriptcenter/guide/sas_sbp_mybu.mspx.
On the companion media, you will find all of the scripts referred to in this chapter.