If the cheque is crossed A/c payee only, then it can only be lodged to the account of the payee, it can not be endorsed over to someone else. It is not transferable.
You might get away with it by getting someone to lodge it via an ATM or in branch machine but most of the Irish banks now use a post lodging anti-fraud tool called Kappa and one of the things that does is compares payees names against the account holders names and if there is a discrepency, it throws it out for someone to check (no pun intended). They don't check everything and most have a value threshold which varies per bank.
So if it is low value, you may get away with it, high value, you probably won't and it will be bounced and it may get flagged as well from a money laundering perspective.