Setting Custom Field Value

Hi, I know this should be pretty simple but I’m stuck, and I’ve tried
google and reading the code documentation and experimenting and I’ve not
been able to do it.
All I want to do is set this CF with the value “Reported” inside a scrip.
Thanks in advance.

if ($cf->Name eq “Error Status”) {
$v = $ticket->CustomFieldValues($cf->Id());
if (defined(my $t3 = $v->Next())) {
$state = $t3->Content();
}
else {
$state = “Reported”;
### $cf->SetCustomFieldValue(“Reported”);
}
}