Extension of status at CBP road borders may or may not work 100% of time.
Better way is to fly to Mexico over a weekend, say cancun and fly back. The CBP at POE will extend H4 based on the primary H1B.
Note that if your H1B/H4 visa is expired you will need to apply for tourist card for Mexico visit.