I would do the check of ``defined('PHP_WINDOWS_VERSION_MAJOR')`` first, to avoid doing these 2 executions in case you know already it is Windows