How to fix interceptors generation on `bin/magento setup:di:compile` in Magento ≥ 2.2 in Windows?

How do I install Magento 2.4 to Windows?