we can get the composer path from composer help command
php -d memory_limit=-1 /usr/sbin/composer install --no-interaction --prefer-dist --optimize-autoloader
============ RUN composer with multiple versions of PHP
To run composer with specific version of PHP use
PATH_TO_PHP\php.exe PATH_TO_COMPOSER\composer.phar install