An appellate court may affirm, modify, vacate, set aside or reverse any order brought before it for review, and may remand the matter and direct the entry of such appropriate order, or require such further proceedings to be had as may be just under the circumstances.
42 Pa.C.S. § 706