Bug: the console commands fail with the message «Command line user may not have proper read+execute permissions for directories under "var/generation/"» when the «var/generation» directory is absent

Yes, I have mentioned it here: Bug: \Magento\Framework\Setup\FilePermissions::checkDirectoryPermissionForCLIUser() fails on Windows (wrongly detects whether a directory is executable)