I want to use the redirect append >> or write > to write to a txt file, but when I do, I receive a weird format "\\x00a\\x00p..
>> and > redirects console output. So i assume that would also include some weird characters sometimes. >> and > are more closely related to the Out-File cmdlet.
add-content does not forward console output to a file, It only writes the values you provide it (e.g. a variable or pipeline object)
about_redirection