C5-8.4* How to save object select attribute values programmatically?

Permalink
I add object attributes during a package install:
$select = AttributeType::getByHandle('select');
$options = [t('Manual'), t('Automatic')];
$optionValues = array();
foreach ($options as $option) {
    $o = \Concrete\Attribute\Select\Option::getByID($option);
    if (is_object($o)){
        $optionValues[] = $o;
    }
}
$select->setAttribute($handle, $optionValues);

but I get an error: "Call to undefined method Concrete\Core\Entity\Attribute\Type::setAttribute()".

How can I set the select attribute options?

linuxoid