Objects in motion represent Newton's law of inertia. The kinetic energy of an object can do work on an object in another frame depending on relative velocity.
A frictionless, or lossless system violates LOT.
A perpetual motion device involves a process that does work. In the case of an object in space it has kinetic energy which can do work but not indefinitely. An object in space will be influenced by gravity however weak, and collisions with dust and gas. Eventually.
Perpetual motion refers to devioce or system that has no losses or renews itself.
The universe itself may be in perpetual motion, but the topic refers to man made systems.
https://en.wikipedia.org/wiki/Perpetual_motion
Perpetual motion is motion of bodies that continues indefinitely. A perpetual motion machine is a hypothetical machine that can do work indefinitely without an energy source. This kind of machine is impossible, as it would violate the first or second law of thermodynamics.[2][3][4][5]
A perpetual motion machine of the first kind produces work without the input of energy. It thus violates the first law of thermodynamics: the law of conservation of energy.
A perpetual motion machine of the second kind is a machine which spontaneously converts thermal energy into mechanical work. When the thermal energy is equivalent to the work done, this does not violate the law of conservation of energy. However, it does violate the more subtle second law of thermodynamics (see also entropy). The signature of a perpetual motion machine of the second kind is that there is only one heat reservoir involved, which is being spontaneously cooled without involving a transfer of heat to a cooler reservoir. This conversion of heat into useful work, without any side effect, is impossible, according to the second law of thermodynamics.
A perpetual motion machine of the third kind is usually (but not always)[15][self-published source] defined as one that completely eliminates friction and other dissipative forces, to maintain motion forever (due to its mass inertia). (Third in this case refers solely to the position in the above classification scheme, not the third law of thermodynamics.) It is impossible to make such a machine,[16][17] as dissipation can never be completely eliminated in a mechanical system, no matter how close a system gets to this ideal (see examples in the Low Friction section).
Impossibility[edit]
October 1920 issue of Popular Science magazine, on perpetual motion. Although scientists have established them to be impossible under the laws of physics, perpetual motion continues to capture the imagination of inventors. The device shown is a "mass leverage" device, where the spherical weights on the right have more leverage than those on the left, supposedly creating a perpetual rotation. However, there are a greater number of weights on the left, balancing the device.
"Epistemic impossibility" describes things which absolutely cannot occur within our current formulation of the physical laws. This interpretation of the word "impossible" is what is intended in discussions of the impossibility of perpetual motion in a closed system.[18]