A recycling company and its two directors have been prosecuted after multiple safety failings.