&1 > "file.txt""> &1 > "file.txt""> &1 > "file.txt"">
# cmdlet -> some scripts
# Redirected to success stream and overwrite into "file.txt"
cmdlet 6>&1 > "file.txt"