There's no way to do this (at least non that I know of) without passing some indication of what the function should do.
FUNCTION TEST1
{
"1","2","3"
}
$y = TEST1 # save the values to an array
TEST1 # just send the returned values to the success stream (NOT a best-practice!)
$null = TEST1 # discard the returned values
TEST1 | # send the returned values to the console host
ForEach-Object{
Write-Host "This is $_"
}
Keep in mind that Write-Host sends the output to the console host, not to your script. It happens immediately, too.