Getting a free Windows virtual machine from Microsoft
Microsoft offers free Windows virtual machine images for development. This is the easiest way to get your needed Windows environment up and running quickly for testing purposes.
The available virtual machines can be downloaded on Microsoft's website. We describe the setup with VMWare on macOS, Windows and Linux, but you can use whatever VM platform you are familiar with.
The VMs are meant to be used for testing purposes only and expire after some time.
Be sure to change the VM's keyboard layout to your preferred one as described here: How to change your keyboard layout (Windows Support).