Create a file called tee.cmd and save it somewhere in your PATH. The contents are as follows:
@ECHO OFFNow just pipe your command to "tee" and pass the name of the file you want to log to.
POWERSHELL -c "Tee-Object -FilePath %1"
DIR | tee op.txtYou will get a directory listing and it will also be logged to op.txt.