ci: Factor out initial setup script for Windows external test jobs On Linux and macOS we use the "before script" for both build and test jobs. On Windows we only want a subset of it, but give it a dedicated helper for consistency.