Write to a file

COMMAND | Set-Content -Path OUT_PATH

e.g.

kubectl logs my-pod | Set-Content -Path my-log.txt