Almost all spacecrafts launched by humanity consist of electrical components which require electricity to run. Usually, spacecrafts are either powered by a Solar Panel or using Radioisotope Thermoelectric Generator (RTG). We use batteries to store this power. We use this energy either directly from the source or from the battery.
We know that there are two forms of Electric Current - Alternating Current (AC) and Direct Current (DC). Alternating current (AC) is the form in which electric power is delivered to businesses and residences, and it is the form of electrical energy that we typically use when we plug electrical appliances into a wall socket. Direct Current (DC) has many uses, from the charging of batteries to large power supplies for electronic systems, motors, and more. These two forms of electric current have their own advantages and disadvantages.
What form of Electric Current do we use to power Spacecrafts (Satellites, Landers, Rovers) - Alternating Current (AC) or Direct Current (DC)? Does this preference vary whether it is a crewed or un-crewed spacecraft? Or does it depend on whether it is an orbiter or a lander or rover? Why have we chosen this over the other form? Are there any exceptions to this, or is this fact mission-specific?