fix: run downloaded Windows installer in script scope (#2540)