To determine the direction ratios of the given lines, we find their intersection and utilize determinants:
\[
\begin{vmatrix}
\hat{i} & \hat{j} & \hat{k} \\
1 & 1 & -1 \\
1 & -2 & 3
\end{vmatrix}
\]
Expanding this determinant yields:
\[
\hat{i} (3 - 2) - \hat{j} (3 - (-1)) + \hat{k} (-2 - 1) = \hat{i} - 4\hat{j} - 3\hat{k}
\]
The direction ratios of the required line are therefore \( (1, -4, -3) \).
Equation of the Line:
\[
\frac{x-1}{1} = \frac{y-2}{-4} = \frac{z-4}{-3} = \lambda
\]
Let \( P(1, -2, 5) \) be the point from which the perpendicular is drawn. The coordinates of \( P \) in terms of \( \lambda \) are:
\[
(1 + \lambda, 2 - 4\lambda, 4 - 3\lambda)
\]
The perpendicular distance is minimized when the dot product of \( \overrightarrow{PQ} \) and the direction vector is zero. We solve:
\[
\overrightarrow{PQ} \cdot (1, -4, -3) = 0
\]
Solving for \( \lambda \), we find \( \lambda = \frac{1}{2} \). The coordinates of the perpendicular point are:
\[
\left( \frac{1}{2}, 2, \frac{-5}{2} \right)
\]
The perpendicular distance is calculated as:
\[
PQ = \sqrt{\frac{21}{2}}
\]
The final answer is:
\[
\boxed{\frac{\sqrt{21}}{2}}
\]