I think I figured it out
I need 2 virtual devices for this to work:
- Virtual Switch
- Virtual Contact Sensor
On the Hubitat: New rule
- When switch is on, close the sensor.
- When switch is on open the sensor.
On Alexa: New routine
- When the sensor is closed, turn on the smart socket.
- When the sensor is open, turn off the smart socket.
Ugly, but that does matter, because this is equivalent to back end development, and it gets the job done.