Fixed broken PowerShell scripts execution [GH-3192]
Merge pull request #3210 from jyggen/patch-1

core: Fixed broken PowerShell execution