By defining Microsoft PowerShell functions within PowerShell modules, you can organize your scripts, avoid duplicating code, ...
The following would be a good place to start I reckon. One book should be good enough to start - I usually recommend Learn Windows PowerShell in a Month of Lunches (Ace mentioned this) for anyone new ...