How to fix «Invalid directory path; contains illegal characters» on `yarn create @magento/pwa` in Windows?

Use npx @magento/pwa-buildpack create-project instead of yarn create @magento/pwa.