PowerShell might look really strange to you. Many people assume PowerShell is basically CMD-prompt 2.0 because of the way it looks, but it really is a fully operational scripting language underneath.
PowerShell has something called a cmdlet (command-let), which for the most part is the same idea as functions you're used to from other ...