updated build script for Powershell