added powershell script to build a version file on every build

the version is buildnumber-branchname-shorthash if the branch is not master
or buildnumber-shorhash for master