Is there a way to clear the return values inside of a function so I can guarantee that the return value is what I intend? Or maybe turn off this behaviour for the function?<
Pipe output to Out-Null, redirect output to $null, or prefix the function calls with [void]:
Out-Null
$null
[void]
$myArray.Add("Hello") | Out-Null
or
$myArray.Add("Hello") >$null
[void]$myArray.Add("Hello")