\(=\dfrac{x\sqrt{x}+2x-\left(x-1\right)\left(\sqrt{x}-2\right)-\sqrt{x}-6}{x-4}:\dfrac{\sqrt{x}+2-\sqrt{x}+2}{\sqrt{x}-2}\)
\(=\dfrac{x\sqrt{x}+2x-x\sqrt{x}+2x+\sqrt{x}-2-\sqrt{x}-6}{x-4}\cdot\dfrac{\sqrt{x}-2}{4}\)
\(=\dfrac{4x-8}{x-4}\cdot\dfrac{\sqrt{x}-2}{4}=\dfrac{x-2}{\sqrt{x}+2}\)