I've solved the problem. You need to open the osp 6 module settings (C:\OSPanel\config\PHP-x .x\default\settings.ini) and add the necessary paths for the PATH variable there. After that, you need to restart the module.