Script to import several private keys into Electrum

DuckDuckGo does not reveal anything interesting. How to import several private keys into Electrum from a file using the Electrum console or a shell script, for all valid derivable BTC addresses? (1,3, bc1)

Finally, I would like to directly direct the output of a script to an import script.

The file is in the format:

BTC model:   
Address of BTC:   
BTC private key: 
...