A 4.5-magnitude earthquake has shaken central-west NSW, with tremors felt from Orange to Batemans Bay.