Added Powershell support.

Improved linux (sh), batch (bat) scripts.