If you are interested in scripting for Windows than a technology designed specifically for Windows, such as PowerShell , this is a smart choice.
Although groovy will probably allow you to reach your goal, I don’t think there is a definite advantage that it can offer.
Speaking of this, you should take into account the coefficient of familiarity and the learning curve. You say developers have experience with Java and groovy, in which case ant tasks using groovy DSL might be easier than learning PowerShell.
Regardless, consider developing scenarios using the TDD approach. groovy offers many frameworks (for example, try Spock), while there are ways to achieve this for PowerShell .
mfloryan
source share