Importing natural gas and electricity into France: Customs, Excise and VAT formalities

Supply difficulties are increasing the need to source energy beyond the EU borders. How to complete the customs formalities for importing natural gas and electricity into France?