You'd need a bunch of batteries. The amperage just isn't there.
Makita did it, it was pedal assist. And slow.
The newer Milwaukee batteries (XC, HD, etc) are capable of delivering 2500 watts peak, and 1500 watts sustained based on YT tests. So about 2HP of raw potential output ignoring motor inefficiency. So two of them could get you 4HP. Not a ton, but probably workable for a small pit bike. It's not going to be anything crazy though.
There are RC cars that can double this power output.