This one is not really complicated. You must just open your eyes because this parameter is working differently.
Usually, you pass parameters with the variable name preceded by a $ dollar sign.
But for the Tee-Object cmdlet, you must omit the $ dollar sign for the Variable parameter, and it works like a charm!