Is there any way to use chess engines (by commands or GUI tools) to find the sequence of moves need to transform an initial position(P1) to a target position(P2) while the count of moves is exactly N?
For example, after giving it a FEN as P1 and another FEN as P2, it outputs a list of N legal moves that transforms P1 to P2.
Assume it's possible to do N moves to transform the initial position to target position.