Redirect output to variable:

$Result=WRITEVALUE(.....)
$Result=DELVALUE(.....)