Laying line for wallbox

Hello together, the following facts: I live in a townhouse with adjacent garage yard. Unfortunately the garages have no electricity, so currently no wallbox can be installed. The house is not 50m from the back wall of the garage. I am not an expert, but theoretically “only” a line from the house would have to be placed in the garage, counters and fuses to it and hooks on it. Has someone done similar things? Knows what it could cost about? Is it possible at all h, since the management goes over public ground, should be dug etc.? Around me exist some public pillars, however, I would like to check if a wallbox in the garage would be possible. Thank you and many greetings