add script to run unit tests on YARN + minor refactorings in powershell scripts