The form of energy gained by an object when it is raised is known as potential energy. Potential energy is proportional to mass, gravitational acceleration, and object height.
Potential energy = mgh = Workdone
It only has magnitude thus, the potential energy is a scalar quantity. The joule is the SI unit of potential energy.
Hence, potential energy is a scalar quantity i.e. it has only magnitude.