To generate electricity from biogas, you need to convert a diesel generator to run on dual fuel, diesel + biogas. I have heard on alterations where 70% biogas and 30% diesel works.
You need to figure out who does these alterations in your local area.
To run any motor, you need electricity, this...