Assuming it has a 50A breaker and assuming the electrician sized the wires correctly for a 50A breaker, it is straightforward. You’d need to go to a big box store and get 4’ of 8 gauge THHN black wire. Cut it in half and that’ll be the extension wire for your two hots. Buy 2’ of green 8 gauge and that’ll be your extension wire for the ground (Technically you can use 10 gauge for the ground, but whatever). You can use appropriately sized bug wire nuts to connected the extension wires in the existing junction box once you get rid of the receptacle. I am assuming you can place the Wall Connector directly over the junction box such that the rear entry hole of the Wall Connector goes over the junction box. If you need to mount the junction box elsewhere, that gets more complicated.
Measure twice, cut once when you’ve routed your wire extensions into the newly mounted Wall Connector. Don’t put any strain on the wires when routed.
If the receptacle was a 14-50, then cap off the white neutral wire inside the junction box, it isn’t needed for the Wall Connector.