I have a PowerShell script that uses du.exe (Disk Usage originally from Sysinternals) to calculate the size of directories.
If I run du c:\\Backup in th
du c:\\Backup
Another way to suppress the NativeCommandError output is to convert the objects in the pipeline to strings as outlined at the bottom of this answer:
NativeCommandError
du c:\Backup 2>&1 | %{ "$_" }