There are some great books for beginners, especially if you have no scripting experience.
Powershell is full of help files and there a ton of free videos, blogs, etc. available. The short answer is you need to look at arrays and foreach loop. Another important item is operators, specifically call operators to call external non-Powershell commands.