Create a "php-bin" directory in the site docroot and copy php-cgi of the required version into it:
$ cp /opt/plesk/php/5.4/bin/php-cgi ./php-bin/
In the required directory, write in .htaccess:
<Files ~ \.(php)$>
SetHandler fcgid-script
FCGIWrapper...