Fixed broken PowerShell scripts execution [GH-3192]