OPINION BY
President Judge PELLEGRINI.
Before the Court is the Department of Health’s (Department) Amended Application for Summary Relief pursuant to Pa. R.A.P. 1532(b)1 (Application) for peremp[678]*678tory judgment with respect to its Amended Petition for Review in the Nature of an Action in Mandamus (Petition). For the reasons that follow, we grant the Application and the mandamus relief sought in the Petition.
I.
A.
On June 26, 2018, in a case involving the marital exemption from the federal estate tax under Section 2056(a) of the Internal Revenue Code, 26 U.S.C. § 2056(a), the United States Supreme Court held that the federal Defense of Marriage Act’s definition of “marriage” as only a legal union between a man and a woman, and the definition of “spouse” as only a person of the opposite sex who was a husband or wife found in 1 U.S.C. § 7, were unconstitutional as a deprivation of the liberty of the person protected by the Fifth Amendment to the United States Constitution. See United States v. Windsor, - U.S. -, -, 133 S.Ct. 2675, 2693-2696, 186 L.Ed.2d 808 (2013). Nevertheless, as the Supreme Court explained:
[ Sjtate laws defining and regulating marriage, of course, must respect the constitutional rights of persons; but, subject to those guarantees, “regulation of domestic relations” is “an area that has long been regarded as a virtually exclusive province of the States.” ... Consistent with this allocation of authority, the Federal Government, through our history, has deferred to state-law policy decisions with respect to domestic relations ... The significance of state responsibilities for the definition and regulation of marriage dates to the Nation’s beginning; for “when the Constitution was adopted the common understanding was that the domestic relations of husband and wife and parent and child were matters reserved to the States.”
Id. at -, 133 S.Ct. at 2691.2 Because the regulation of marriage is a matter for [679]*679the states, the Supreme Court found that a federal definition of marriage that creates “two contradictory marriage regimes within the same State” must fall. Id. at -, 133 S.Ct. at 2694. Congress “interfered” with “state sovereign choices” about who may be married by creating its own definition, relegating one set of marriages— same-sex marriages — to the “second-tier,” making them “unequal.” Id.
B.
Seeking a declaration that the prohibition of same sex marriages in Pennsylvania was unconstitutional, on July 9, 2013, the American Civil Liberties Union of Pennsylvania filed a federal civil rights lawsuit on behalf of a number of same-sex couples against several Commonwealth officials including the Governor; the Department’s Secretary; the Attorney General; the Register of Wills of Washington County; and the Register of Wills and Clerk of Orphans’ Court of Bucks County. See Whitewood v. Corbett (No. 13-1861) (M.D.Pa.). The lawsuit challenges the constitutionality of Section 1102 of the Marriage Law, 23 Pa.C.S. § 1102, which defines “marriage” as “[a] civil contract by which one man and one woman take each other for husband and wife,” and Section 1704, 23 Pa.C.S. § 1704, which provides:
It is hereby declared to be the strong and longstanding public policy of this Commonwealth that marriage shall be between one man and one woman. A marriage between persons of the same sex which was entered into in another state or foreign jurisdiction, even if valid where entered into, shall be void in this Commonwealth.
The complaint alleges that the foregoing provisions violate the Due Process and Equal Protection Clauses of the Fourteenth Amendment to the United States Constitution.3
On July 11, 2013, the Attorney General issued a press release announcing that her office would not defend the provisions of the Marriage Law challenged in Whitewood because she deemed them to be “wholly unconstitutional” and that it was her duty under the Commonwealth Attorneys Act4 to authorize the Office of Gener[680]*680al Counsel5 to defend the State in the litigation. See Press Release, Office of Attorney General, Attorney General Kane will not defend DOMA (July 11, 2013), http://www.attorneygeneral.gov/press. aspx?id=7043. On July 23, 2013, D. Bruce Hanes (Hanes), Clerk of the Orphans’ Court of Montgomery County, issued a press release announcing that he had “decided to come down on the right side of history and the law” and was prepared to issue a marriage license to a same-sex couple based upon the advice of his solicitor, his analysis of the law, and the Attorney General’s belief that the Marriage Law is unconstitutional. See http://main linemedianews. com/articles/2013/07/23/ mainlinetimes/news/doc51eecae35360b 015385105.txt.
C.
On August 5, 2013, the Department filed the instant Petition and Application, seeking a writ of mandamus to compel Hanes, in his official capacity as Clerk of the Orphans’ Court of Montgomery County, to perform his duties as established by Section 2774(a) of the Judicial Code, 42 Pa. C.S. 2774(a)6 and accordingly comply with all provisions of the Marriage Law. The Department contends that this Court has jurisdiction over the action pursuant to Section 761(a)(1) and (2) of the Judicial [681]*681Code, 42 Pa.C.S. § 761(a)(1), (2),7 because Hanes is a “commonwealth officer.”
The Department alleges that it is entitled to mandamus relief because Hanes is repeatedly and continuously acting in derogation of the Marriage Law because, as of August 2, 2013, he has been issuing marriage licenses to same-sex applicants and accepting the marriage certificates of same-sex couples stating that their marriages have been lawfully performed under the Marriage Law. The Department asserts that Hanes’ actions violate Sections 1102 and 1704 of the Marriage Law, which limit marriage to opposite-sex couples, and Hanes’ duty to perform ministerial duties and that Hanes may not issue marriage licenses to same-sex applicants based on his personal opinion that the law is unconstitutional.8 It also contends that Hanes may be committing a misdemeanor under Section 411 of the Second Class County Code9 for each violation thereof for refusing to carry out his public duty in accordance with the law.
Hanes filed a Response to the Department’s Application in which he raised in New Matter that the Application should be denied for the reasons set forth in his Preliminary Objections filed that same day. First, Hanes alleges that he is a “judicial officer” under Section 2777 of the Judicial Code, 42 Pa.C.S. § 2777, and that his issuance of a marriage license is a “judicial act,” so that exclusive jurisdiction over the instant mandamus action lies with the Supreme Court under Section 721(2) of the Judicial Code, 42 Pa.C.S. § 721(2), as he is a “court[ ] of inferior jurisdiction,”10 and this Court does not have jurisdiction to issue a writ of mandamus to a “court of inferior jurisdiction” under Section 761(c), 42 Pa.C.S. § 761(c),11 in the absence of a pending appeal.12
[682]*682Second, Hanes asserts that the Department does not have standing to seek mandamus relief, because only the Attorney General, the Montgomery County District Attorney, or a private citizen who has suffered a special injury may seek to enforce an officer’s public duty,13 and the Attorney General did not authorize the Department to bring suit under Section 204(c) of the Commonwealth Attorneys Act.
Finally, Hanes contends that the Department fails to state a claim for which mandamus relief may be granted, because the Department failed to show that a Clerk of the Orphans’ Court does not have the discretion to determine the constitutionality of the Marriage Act. Hanes argues that the Department must show that Sections 1102 and 1704 of the Marriage Law are constitutional in order to establish a clear right to relief, and furthermore, that the Department cannot do so because the Marriage Law’s exclusion of same-sex marriages violates the inalienable right to marry solely based on gender in violation of the Fourteenth Amendment to the United States Constitution and Article 1, Sections 1, 26 and 28 of the Pennsylvania Constitution.14
D.
By order dated August 22, 2013, argument was limited to the following issues encompassing the claims raised by Hanes in opposition to the Department’s Application: 15
• Whether this Court lacks subject matter jurisdiction because Hanes is a Judicial Officer and his issuance of a marriage license is a judicial act;
• Whether the Department has standing and, if not, what is the effect of the [683]*683Pennsylvania Attorney General’s delegation of the duty to defend the constitutionality of Sections 1102 and 1704 of the Marriage Law; and
• Whether the constitutionality of the act sought to be enforced can be raised as a defense to a mandamus action.
On September 4, 2013, argument was heard on the foregoing issues. We will now consider these issues separately.16
II.
Relying on several cases, Hanes first argues that this Court cannot decide this case because jurisdiction properly lies with the Supreme Court under Section 721(2) of the Judicial Code, 42 Pa.C.S. § 721(2), which provides that “[t]he Supreme Court shall have original but not exclusive jurisdiction of all cases of ... (2) Mandamus or prohibition to courts of inferior jurisdiction.” (Emphasis added). He argues that he is a “judicial officer” and his issuance of a marriage license under the Marriage Law is a “judicial act” because he is issuing a marriage license on behalf of the Orphans’ Court division of the Court of Common Pleas of Montgomery County, and, therefore, this mandamus action is one directed to a “court of inferior jurisdiction” conferring jurisdiction to the Supreme Court.
Hanes is clearly a county officer, because he serves as Register of Wills and Clerk of Orphans’ Court, and as such performs only ministerial duties. Article 9, Section 4 of the Pennsylvania Constitution provides that “County officers shall consist of commissioners, controllers or auditors, district attorneys, public defenders, treasurers, sheriffs, registers of wills, recorders of deeds, prothonotaries, clerks of the courts, and such others as may from time to time be provided by law.” Pa. Const. art. IX, § 4. In counties of the second class (such as Montgomery County) or second class A, one person holds the offices of both Register of Wills and Clerk of Orphans’ Court pursuant to Section 1302 of the Second Class County Code, 16 P.S. § 4302. Under Section 711(9) of the Probate, Estates and Fiduciaries Code (Probate Code), 20 Pa.C.S. § 711(9), “[t]he jurisdiction of the court of common pleas over the following shall be exercised through its orphans’ court division: ... Marriage licenses, as provided by law.” Thus, marriage licenses are issued by the Clerk of Orphans’ Court. However, Section 901 of the Probate Code, 20 Pa.C.S. § 901, gives to the Register of Wills “[j]u-risdiction of the probate of wills, the grant of letters to a personal representative, and any other matter as provided by law.”
Courts of the Commonwealth have held that the Register of Wills, when accepting a will for probate, is acting in judicial capacity. See Commonwealth ex rel. Winpenny v. Bunn, 71 Pa. 405, 412 (1872) (“In nothing said herein do we mean to say that the acts of the register are in no case judicial. They are always so[.]”); In re Sebik’s Estate, 300 Pa. 45, 47, 150 A. 101, 102 (1930) (“[A] register is a judge, and the admission of a will to probate is a judicial decision, which can only be set aside on appeal, and is unimpeachable in any other proceeding.” (citing Holliday v. Ward, 19 Pa. 485, 489 (1852))); Walsh v. Tate, 444 Pa. 229, 236, 282 A.2d 284, 288 [684]*684(1971) (“[T]he Register of Wills performs a judicial function and is closely integrated into the judicial branch of govern-ment_”); Cole v. Wells, 406 Pa. 81, 90-91, 177 A.2d 77, 81 (1962) (“The decree of probate by the Register of Wills constitutes a judicial decree in rem[.]”); Mangold v. Neuman, 371 Pa. 496, 500, 91 A.2d 904, 906 (1952) (“judicial decree of the register of wills”).
However, the courts have not held that the Clerk of Orphans’ Court acts in a judicial capacity when keeping records. For example, in Miller’s Estate, 34 Pa.H Super. 385 (1907), the appellant’s contention that the authority of an Orphans’ Court clerk to grant or refuse a marriage license is a judicial and not a ministerial act was rejected by the Superior Court. Another case that Hanes cites is the unpublished single-judge opinion in Register of Wills & Clerk of the Orphans’ Court of Philadelphia License Marriage Bureau v. Office of Open Records (Pa.Cmwlth., No. 1671 C.D.2009, filed March 26, 2010). Because it is an unpublished single-judge opinion, it is not precedential, Internal Operating Procedure § 414, but it is illustrative of how the definitions in the applicable act determine whether the Clerk of Orphans’ Court and/or Register of Wills can be considered a “judicial officer” in some circumstances and not others. In that case, we were considering whether the Register of Wills was a “judicial agency” for the purpose of determining whether the Office of Open Records had jurisdiction over records withheld by the Register of Wills Office under the Right-to-Know Law (RTKL).17 We noted that Section 102 of the RTKL, 65 P.S. § 67.102, defines “judicial agency” as “[a] court of the Commonwealth or any other entity or office of the unified judicial system,” and that Section 102 of the Judicial Code, 42 Pa.C.S. § 102, includes “administrative staff’ within the definition of “personnel of the system,” which also includes clerks of court and prothonotaries. Based on the definitions in the RTKL, we held that the Office of Open Records could not order the release of judicial records held by the Register of Wills and Clerk of the Orphans’ Court of Philadelphia. Moreover, while “personnel of the system” are deemed to be part of a “judicial agency” for purposes of the RTKL, we made an explicit distinction between the “judicial function” of the Register of Wills with respect to the probate of wills and the non-judicial function of the Clerk of Orphans’ Court with respect to the issuance of marriage licenses. Id.18
As we looked to the definitions contained in the RTKL in Register of Wills & Clerk of the Orphans’ Court of Philadelphia License Marriage Bureau, we look to the definitions in the Judicial Code in deciding whether the Supreme Court has exclusive jurisdiction of this matter under Section 721(2) as a mandamus action to a “court of inferior jurisdiction.” 42 Pa.C.S. § 721(2). Section 102 of the Judicial Code defines “court” as “[i]nclud[ing] any one or [685]*685more of the judges of the court who are authorized by general rule or rule of court, or by law or usage, to exercise the powers of the court in the name of the court.” 42 Pa.C.S. § 102. Section 102 also defines “judicial officers” as “[jjudges, district justices and appointive judicial officers.” In contrast, “county staff’ is defined as “[sjystem and related personnel elected by the electorate of a county ... The term does not include judicial officers.” Id. In turn, “system and related personnel” is defined as including Registers of Wills and Clerks of the Orphans’ Court division. Id. Thus, Hanes, as the Clerk of the Orphans’ Court and Register of Wills, is “county staff’ and is not a judge or judicial officer. Accordingly, he is not within the definition of “court” within the meaning of Section 721(2) of the Judicial Code, and the Supreme Court does not have jurisdiction of this mandamus action against him.
Moreover, this is an action by the Department, part of the Executive Branch of the Commonwealth government. As such, the Department, with counsel designated by the Office of General Counsel, may bring this action in the Commonwealth Court pursuant to Section 761(a)(2) of the Judicial Code, which grants the Commonwealth Court “original jurisdiction of all civil actions or proceedings: ... (2) By the Commonwealth government....” 42 Pa.C.S. § 761(a)(2).
In the alternative, Section 761(a)(1) of the Judicial Code provides that the Commonwealth Court has original jurisdiction of all civil actions or proceedings “[ajgainst the Commonwealth government, including any officer thereof, acting in his official capacity....” 42 Pa.C.S. § 761(a)(1). Section 102 of the Judicial Code also defines “Commonwealth government,” in pertinent part, as “[t]he courts and other officers and agencies of the unified judicial system....” 42 Pa.C.S. §102. Although Hanes is not a “judicial officer,” he is named in his official capacity as Clerk of the Orphans’ Court of Montgomery County. He is, therefore, an officer of the Commonwealth government under Section 102 of the Judicial Code, and this Court has original jurisdiction under Section 761(a)(1). Richardson v. Peters, 610 Pa. 365, 366-67, 19 A.3d 1047-48 (2011); Werner v. Zazyczny, 545 Pa. 570, 577 n. 5, 681 A.2d 1331, 1335 n. 5 (1996).19
III.
Hanes next argues that the Department does not have standing20 under the former Mandamus Act of 1893 and the related cases21 to initiate the instant man-[686]*686damus proceedings seeking to compel him to perform his public duty, because only the Attorney General, the Montgomery County District Attorney or a private citizen with an interest independent of the public at large has such standing. Because the Department is not the Attorney General or a private citizen, he contends that it does not have standing to maintain this action.
While this action was not brought in the name of the Commonwealth, the Attorney General, by letter dated August 30, 2013, authorized the Department of Health to bring this action on her behalf pursuant to Section 204(c) of the Commonwealth Attorneys Act, which allows the Office of General Counsel, who is the counsel for all state agencies, to do so under Section 301(6) of that statute. When authorizing the General Counsel to bring an action, as the Attorney General did here, Section 204(c) of the Commonwealth Attorneys Act provides that the Office of General Counsel or the counsel for the agency shall act “in [her] stead.” 71 P.S. § 732-204(c). The net effect is that the Office of General Counsel has all the rights and duties of the Attorney General, and since Hanes admits that the Attorney General has standing, the Department of Health, through the Office of General Counsel, can maintain this action to enforce a public duty.
Moreover, the Department has standing in its own right to bring this action. As the Supreme Court has explained:
[ W]hen the legislature statutorily invests an agency with certain functions, duties, and responsibilities, the agency has a legislatively conferred interest in such matters. From this it must follow that, unless the legislature has provided otherwise, such an agency has an implicit power to be a litigant in matters touching upon its concerns. In such circumstances the legislature has implicitly ordained that such an agency is a proper party litigant, ie., that it has “standing”....
Pennsylvania Game Commission, 521 Pa. at 128, 555 A.2d at 815; see also Commonwealth v. Beam, 567 Pa. 492, 497-500, 788 A.2d 357, 361-62 (2005) (holding that the Department of Transportation had the implicit authority under the Aviation Code, 74 Pa.C.S. §§ 5101-6505, to initiate an action in equity to enjoin the operation of an unlicensed airport where the injunctive relief sought was a restrained and supervised form of administrative action and the operation of the unlicensed airport was injurious to the public interest).
Section 2104(c) of the Administrative Code of 1929 (Administrative Code)22 empowers the Department “[t]o see that laws requiring the registration of ... marriages ... are uniformly and thoroughly enforced throughout the State, and prompt returns of such registrations made to the department.” Thus, the General Assembly has specifically conferred upon the Department the duty to ensure the uniform and thorough enforcement of all provisions of the Marriage Law, including Section 1102, defining marriage as “[a] civil contract by which one man and one woman take each other for husband and wife,” and Section 1704, which makes same-sex marriages entered into in foreign jurisdictions void within the Commonwealth. 23 Pa.C.S. [687]*687§§ 1102, 1704. In addition, the General Assembly has empowered the Department to enforce Section 1301(a), which prohibits persons from being joined in marriage until a license is obtained, and Section 1302, which requires a written and verified application by both parties before a license is issued requiring the disclosure “[a]ny other facts necessary to determine whether legal impediment to the proposed marriage exists.” 23 Pa.C.S. §§ 1301(a), 1302(a), (b)(6). Further, Section 1104 requires that “[mjarriage licenses ... shall be uniform throughout this Commonwealth as prescribed by the department in a form that states, under Section 1310, that “[yjou are hereby authorized to join together in holy state of matrimony, according to the laws of the Commonwealth of Pennsylvania, (name) and (name).... ” 23 Pa.C.S. §§ 1104, 1310. Finally, the Department has the duty to uniformly enforce the provisions of Section 1307, which state that “[tjhe marriage license shall be issued if it appears from properly completed applications on behalf of each of the parties to the proposed marriage that there is no legal objection to the marriage....” 23 Pa.C.S. § 1307.23
Based on the foregoing, it is clear that the Department is the proper party with standing to initiate the instant mandamus proceeding to compel Hanes to discharge his duties in compliance with the Marriage Law, because the Department possesses a substantial, direct, and immediate interest in the subject matter of this litigation pursuant to its authority under the Administrative Code and the Marriage Law.
IY.
Hanes also contends that because he must determine whether to issue marriage licenses, “as provided by law,” he has the discretion to determine whether the Marriage Law is constitutional and that it would be unconstitutional as applied to same-sex couples. With respect to whether Hanes’ duties as Clerk of the Orphans’ Court of Montgomery County give him discretion to determine whether an act is constitutional, our Supreme Court, albeit in relation to prothonotaries and clerks of courts, has noted:
It is “well settled” in the intermediate appellate courts of this Commonwealth that the role of the prothonotary of the court of common pleas, while vitally important, is purely ministerial. As a purely ministerial office, any authority exercised by the prothonotary must derive from either statute or rule of court. Further, as “[tjhe prothonotary is merely the clerk of the court of Common Pleas[,j [hje has no judicial powers, nor does he have power to act as attorney for others by virtue of his office.” Consistent therewith, “[tjhe prothonotary is not ‘an administrative officer who has discretion to interpret statutes.’ ” Thus, while playing an essential role in our court system, the prothonotary’s powers do not include the judicial role of statutory interpretation.
As the prothonotary and the clerk of courts are created by the same constitutional provision and have substantially identical statutory grants of authority, we conclude that the well-accepted limitations that the courts of this Commonwealth have recognized in the prothono-[688]*688tary’s role are equally applicable to the clerk of courts....
In re Administrative Order No. 1-MD-2003, 594 Pa. 346, 360, 936 A.2d 1, 9 (2007).
The same applies to the clerks of the orphans’ court division of the courts of common pleas, because they are also created and vested with the same powers by the same constitutional provision, Section 15 of the Schedule to Article 5 of the Constitution.24 Likewise, the statutory powers conferred upon the clerk of the orphans’ court division under Section 2777 of the Judicial Code25 are identical to those conferred upon the prothonotary under Section 2737, 42 Pa.C.S. § 2737, and the clerk of courts under Section 2757, 42 Pa.C.S. § 2757. Thus, the powers granted under Section 2777 to Hanes as the Clerk of the Orphans’ Court:
[ a]re clearly ministerial in nature. Nothing in this grant of authority suggests the power to interpret statutes and to challenge actions of the court that the clerk perceives to be in opposition to a certain law. Thus, the clerk of courts, as a purely ministerial office, has no discretion to interpret rules and statutes ....
In re Administrative Order No. 1-MD-2003, 594 Pa. at 361, 936 A.2d at 9; see also Council of the City of Philadelphia v. Street, 856 A.2d 893, 896 (Pa.Cmwlth.2004), appeal denied, 583 Pa. 675, 876 A.2d 397 (2005) (“A ministerial act is defined as ‘one which a public officer is required to perform upon a given state of facts in a prescribed manner in obedience to the mandate of legal authority and without regard to his own judgment or opinion concerning the propriety or impropriety of the act performed.’ ”) (citations omitted).
Nor is any discretion given to the clerk when issuing the license under the Marriage Law, which requires the clerk to issue a marriage license only if certain criteria are met. Section 1302(a) provides that “[n]o marriage license shall be issued except upon written and verified application made by both of the parties intending to marry,” and Section 1302(b) outlines the contents thereof. 23 Pa.C.S. § 1302(a), (b).26 Section 1303(a) provides that no marriage license shall be issued prior to the third day after application unless the Orphans’ Court authorizes a waiver of the time period pursuant to subsection (b). 23 Pa.C.S. § 1303(a), (b).27 Section 1304(b) [689]*689prohibits the issuance of a license if either of the applicants is under 16 years of age unless the Orphans’ Court determines that it is in the best interest of the applicant, and it prohibits issuance of a license if either of the applicants is under 18 years of age unless consented to by the custodial parent. 28 Pa.C.S. § 1804(b)(1), (2). Section 1304 further prohibits issuing a marriage license to incompetent persons unless the Orphans’ Court decides that it is in the best interest of the applicant or society, to applicants under the influence of alcohol or drugs, or to applicants within the prohibited degrees of consanguinity. 23 Pa.C.S. § 1304(c), (d), (e). Under Section 1306, Hanes is required to examine each applicant in person as to: (1) the legality of the contemplated marriage; (2) any prior marriages and their dissolution; (3) any of the Section 1304 restrictions; and (4) all information that must be furnished on the application as prepared and approved by the Department. 23 Pa.C.S. § 1306(a). Finally, under Section 1307, Hanes is required to issue the marriage license subject to the Section 1303(a) three-day waiting period, “[i]f it appears from properly completed applications on behalf of each of the parties to the proposed marriage that there is no legal objection to the marriage.” 23 Pa.C.S. § 1307. Under Section 1308(a), 23 Pa.C.S. § 1308(a), an applicant can appeal Hanes’ refusal to issue a marriage license to the Orphans’ Court.
The foregoing statutory scheme, outlining the applicable requirements and procedure for the issuance of a marriage license, does not authorize Hanes to exercise any discretion or judgment with respect to its provisions. Rather, the Marriage Law specifically requires Hanes to furnish and use the appropriate forms and to issue the license if the statutory requirements have been met, subject to the applicable exceptions and review by the Orphans’ Court. Such is not a discretionary “judicial act” performed by the “judicial officer” of an inferior court. See In re Administrative Order No. 1-MD-2003, 594 Pa. at 361, 936 A.2d at 9; In re Coats, 849 A.2d 254, 258 (Pa.Super.2004) (“[T]he orphans’ court clerk simply performs its ministerial duty in accordance with the statutory mandate that requires applicants to appear in person .... The office of the clerk of the orphans’ court is not sui juris but is dependent on county and legislative provisions to implement its function.... ”).28
[690]*690y.
Hanes also argues that the Application should not be granted because the Department has to establish a clear right to relief, and to do that, the Department must show that the provisions in the Marriage Law limiting marriage to a man and a woman are constitutional. The Department asserts that this is the same as raising a counterclaim, which is prohibited under the rules governing mandamus actions. See Pa.R.C.P. No. 1096 (“No counterclaim may be asserted.”). Until a court has decided that an act is unconstitutional, Hanes must enforce the law as written, and it is not a defense to a mandamus action that the law may be unconstitutional. Only a court can arrive at that conclusion.
All that a democratic form of government means is that we will be governed democratically — the process does not guarantee any particular outcome. The citizens of the Commonwealth have consented to be governed under the terms of our Constitution, and it provides how the Pennsylvania democracy works. Under Article 2, Section 1, the legislative power of the Commonwealth is vested in the General Assembly. Pa. Const, art. II, § 1. The legislative power is the power “to make, alter and repeal laws.... ” Jubelirer v. Rendell, 598 Pa. 16, 41, 953 A.2d 514, 529 (2008). When the legislature enacts a law, under Article 4, Section 2 it is up to the Governor “to take care that the laws be faithfully executed.” Pa. Const. art. IV, § 2. In addition, Article 5, Section 1 of the Constitution states:
The judicial power of the Commonwealth shall be vested in a unified judicial system consisting of the Supreme Court, the Superior Court, the Commonwealth Court, courts of common pleas, community courts, municipal and traffic courts in the City of Philadelphia, such other courts as may be provided by law and justices of the peace. All courts and justices of the peace and their jurisdiction shall be in this unified judicial system.
Pa. Const, art. V, § 1. Under our Constitution then, only the courts have the power to determine the constitutionality of a statute. In re Investigation by Dauphin County Grand Jury, 332 Pa. 342, 352-53, 2 A.2d 804, 807 (1938); Hetherington v. McHale, 10 Pa.Cmwlth. 501, 311 A.2d 162, 167 (1973), rev’d on other grounds, 458 Pa. 479, 329 A.2d 250 (1974).29
[691]*691Governmental officials carry out the functions assigned to the office and no more because when decisions are reached that follow these and other constitutional procedures, it fosters acceptance of a statute or decision even by those who strongly disagree. When public officials do not perform their assigned tasks, it creates the type of “complication” caused by the United States Attorney General’s decision not to defend DOMA, which led the Supreme Court of the United States in Windsor to spend as much time addressing that “complication” as it did on the merits of the case. In this case, a clerk of courts has not been given the discretion to decide whether the statute he or she is charged to enforce is a good idea or bad one, constitutional or not. Only courts have the power to make that decision.
While it is clear that Hanes did not have the power to decide on his own that the law is unconstitutional and to issue marriage licenses to same-sex couples, the question now is whether he can take advantage of his improper action in doing so and challenge the constitutionality of the Marriage Law as a defense in a mandamus action to compel him to follow its provisions. To allow him to raise such a defense would be the functional equivalent of a counterclaim, which is not permitted by Pa.R.C.P. No. 1096.
Moreover, Commonwealth ex rel. Third School-Dist. of the City of Wilkes Barre v. James, 135 Pa. 480, 19 A. 950 (1890), an old case, like other cases discussed here that were decided before the mandamus rules, analyzed what was allowed in a mandamus action. In that case, the clerk of the former Court of Quarter Sessions refused to receive and record the resolutions of school boards contrary to statute. In defense of an application for mandamus seeking to compel him to comply with the law and to perform his ministerial duty, the clerk argued that the applicable statute was unconstitutional. In rejecting this defense, the Supreme Court explained:
It is too plain for argument that the appellant, who is the clerk of the court of quarter sessions of Luzerne county, had no right to decline to receive and record the resolutions of the school boards of the third school-district, accepting of the provisions of the act of 23d May, 1889. P.L. 274. The act referred to requires him to receive and record these papers. His duties were purely ministerial, and the court below properly awarded the peremptory mandamus.
It is but just to say that his act in refusing does not appear to have been one of insubordination, but was intended to test the constitutionality of the said act of 1889. We are of the opinion that the constitutional question cannot be raised in this way. We really have no case before us, beyond the mere refusal of the clerk to file the papers. This does not require discussion. The order of the court below awarding the peremptory mandamus is affirmed.
Id. at 482-83, 19 A. 950.30
We note that in two other cases involving public officers with discretionary pow[692]*692ers, our Supreme Court addressed challenges to the constitutionality of a statute as a defense in a mandamus action. In Commonwealth ex rel. Brown v. Heck, 251 Pa. 39, 95 A. 929 (1915), our Supreme Court considered the constitutionality of a statute altering the counties of a judicial district, an issue that was raised as a defense in a mandamus action seeking to compel a common pleas court judge to perform his judicial duties to administer an estate. The Supreme Court did not address or distinguish James. In Commonwealth ex rel. Carson v. Mathues, 210 Pa. 372, 59 A. 961 (1904), the Supreme Court affirmed a common pleas order granting mandamus to compel the state treasurer to pay warrants for judicial salaries. The Supreme Court did not address the trial court’s analysis of James or the trial court’s holding that the treasurer’s standing as “a high constitutional officer of the Commonwealth” who exercises “discretion” permitted him to defend on the purported unconstitutionality of the statute setting the salaries. James is, nonetheless, controlling because the instant case also involves a mandamus action to compel a court clerk with no discretionary authority to perform his mandatory ministerial duty, whereas the foregoing cases involved constitutional officers with discretionary authority.
Because only the General Assembly may suspend its own statutes, because only courts have the authority to determine the constitutionality of a statute, and because all statutes are presumptively constitutional, a public official “[i]s without power or authority, even though he is of the opinion that a statute is unconstitutional, to implement his opinion in such a manner as to effectively abrogate or suspend such statute which is presumptively constitutional until declared otherwise by the Judiciary.” Hetherington, 311 A.2d at 168. Based on the foregoing, it is clear that Hanes does not have standing to assert the purported unconstitutionality of the Marriage Law as a defense to the instant Petition.
VI.
With respect to the Putative Interve-nors’ Petition for Leave to Intervene,31 as outlined above, the constitutionality of the Marriage Law may not be raised as a defense in the instant mandamus proceedings and will not be considered by this Court. In addition, the legality of Hanes’ actions and any purported rights obtained thereby are not at issue and may not be established in the instant mandamus action. See, e.g., Barge, 39 A.3d at 545 (“The purpose of mandamus is not to establish [693]*693legal rights, but to enforce those rights already established beyond peradventure.”) (citation omitted).32 Moreover, there are no obstacles preventing those adversely affected by the provisions of the Marriage Law or putatively possessing rights based on Hanes’ actions, such as the Putative Intervenors, from asserting their own rights in an appropriate forum. See Whitewood v. Corbett (No. 13-1861) (M.D.Pa.).
VII.
Based on the foregoing, we believe that the Department is entitled to the requested summary relief in mandamus. As the Pennsylvania Supreme Court has recently explained:
The writ of mandamus exists to compel official performance of a ministerial act or mandatory duty. See Delaware River Port Auth. v. Thornburgh, 508 Pa. 11, [20,] 493 A.2d 1351, 1355 (1985). Mandamus cannot issue “to compel performance of a discretionary act or to govern the manner of performing [the] required act.” Volunteer Firemen’s Relief Ass’n of City of Reading v. Minehart [, 415] Pa. 305, [311,] 203 A.2d 476, 479 (1964). This Court may issue a writ of mandamus where the petitioners have a clear legal right, the responding public official has a corresponding duty, and no other adequate and appropriate remedy at law exists. Id.; see Board of Revision of Taxes v. City of Philadelphia, 607 Pa. 104, [133,] 4 A.3d 610, 627 (2010). Moreover, mandamus is proper to compel the performance of official duties whose scope is defined as a result of the mandamus action litigation. Thornburgh, [508 Pa. at 20,] 493 A.2d at 1355. Thus, “we have held that mandamus will lie to compel action by an official where his refusal to act in the requested way stems from his erroneous interpretation of the law.” Minehart, [415 Pa. at 311,] 203 A.2d at 479-80.
Fagan v. Smith, 615 Pa. 87, 90, 41 A.3d 816, 818 (2012).
As outlined above, Hanes has admittedly failed to comply with his mandatory ministerial public duty under the Marriage Law by issuing marriage licenses to same-sex couples, by accepting the marriage certificates of same-sex couples, and by waiving the mandatory three-day waiting period, all in violation of the express provisions of the Marriage Law. Even if Hanes is correct in his view that portions of the Marriage Law are unconstitutional, as noted above, the instant mandamus action is not the proper forum in which such a determination may be made. Barge. The proper method for those aggrieved is to bring a separate action in the proper forum raising their challenges to the Marriage Law. Unless and until either the General Assembly repeals or suspends the Marriage Law provisions or a court of competent jurisdiction orders that the law is not to be obeyed or enforced, the Marriage Law in its entirety is to be obeyed and enforced by all Commonwealth public officials.
Accordingly, the Department’s Amended Application for Summary Relief seeking peremptory judgment in mandamus is granted; Hanes’ Preliminary Objections and Putative Intervenors’ Petition for Leave to Intervene Pursuant to Pa. R.A.P. 1531 are dismissed as moot.
ORDER
AND NOW, this 12th day of September, 2013, the Department of Health’s Amended Application for Summary Relief for peremptory judgment in mandamus is granted. D. Bruce Hanes, in his official [694]*694capacity as the Clerk of the Orphans’ Court of Montgomery County, is directed to comply with all provisions of the Marriage Law, 23 Pa. C.S. §§ 1101-1905, while discharging the duties of his office, including the provisions of Sections 1102, 1303(a) and 1704, 23 Pa.C.S. §§ 1102, 1303(a) and 1704, and he shall cease and desist from issuing marriage licenses to same-sex applicants, from accepting the marriage certificates of same-sex couples, and from waiving the mandatory three-day waiting period in violation of the Marriage Law. The Preliminary Objections of D. Bruce Hanes and the Petition for Leave to Intervene Pursuant to Pa. R.A.P. 1531 filed by Putative Intervenors are dismissed as moot.