Added support for windows with powershell 2+
fixed oneliner
Changed temp dir from c:\temp to use system var $env:temp