How to fix Windows "echo $PATH" empty result

When you try to run

echo $PATH

you will always get an empty result.

Instead, if you are in cmd, use

echo %PATH%

but if you are using PowerShell, you need to use

$env:PATH