Override Deploymode in v4.1.x

With the new v4, is there a way to override the Deploymode if certain attributes of the machine are met; for example the machine name ends in a numeral it changes the deploymode to silent, where if it ends in a letter it is interactive? If not I guess I can make a Global Condition in CM and have one deployment type for each condition.
It would seem to me that once you initialize the ADTsession this would not be possible.

that is correct but you can run code before the session opens.

# Zero-Config MSI support is provided when "AppName" is null or empty.
# By setting the "AppName" property, Zero-Config MSI will be disabled.
$adtSession = @{
    # App variables.
    AppVendor = 'Tropheusman'
    AppName = ''
    ...
}

#Changes the deploymode to silent if needed
If ($EnvComputerName -eq "Silent123") {
    $DeployMode = Silent
}