The role of SN-driven turbulence on the formation of outflows, inflows and cooling flows: from Galaxies to Clusters of Galaxies