I'm a bit confused by what you have described. There is a situation when powering up the inverter, but you want it to be automatic. Does the inverter power up automatically?
If it is a normal situation where you power turn on a switch, it seems that the resource that
@FilterGuy pointed to is the answer. I built my precharge switch having not read the document, but then I read it and realized I could use his handy-dandy label for my switch. Great! The resource is great, and doing the precharge is a good idea for systems connected to Li batteries, which can deliver way more current than your inverter (or its capacitors, or your wiring) want to see.