Lap tops ?

I understand what you are saying, I just don’t now why it happens when the engine is not running ? My lap top is a large style Toshiba. I can have the TV on and plug in the laptop to use and providing the engine is running everything is ok, if I turn off the engine and the TV the inverter gets hot and starts to scream.