Winches can run on battery for only a few minutes, depending on the average amp rate per hour of battery life.
But if the battery is connected to the engine, you can run your winch on battery power for an indefinite time.
As long as your battery is connected with the engine and the engine is...