Redirected error message to success stream
dir "C:\\", "fakepath" 2>&1
Redirected into file
dir "C:\\", "fakepath" 2>&1 > .\\dirCommand.log
Redirected warning message to success stream
# 3>&1
# Example (warning and error messages):
& {
Write-Warning "hello"
Write-Error "hello"
Write-Output "hi"
} 3>&1 2>&1 > .\\redirection.log