It’s an interesting idea. A company called Hyliion https://www.hyliion.com/ tried something similar here in the US about 10 years ago. Unfortunately, they weren’t able to have success in the market and ended up pivoting to power generation for data centers.