The USCIS office that made the original decision will first review the appeal and determine whether to grant the requested immigration benefit or not. You need to file different forms depending upon the petition the decision was given.
Typically, all the immigration decisions by the USCIS can be appealed by filing Form I-290B (Notice of Appeal or Motion); however, there are certain exceptions to that.