Carter Shanklin here shows how you can use PowerCLI to run batch files in Windows guest or even scripts in Linux guests. The technique shown allows you to automate a variety of tasks in your guests using PowerCLI.
Invoke-VMscript Improvements in PowerCLI 4.0 U1