HI @AiFa ,
maybe these links help to get started:
https://www.thomasmaurer.ch/2021/03/get-system-uptime-with-powershell/
https://learn.microsoft.com/en-us/powershell/scripting/samples/collecting-information-about-computers?view=powershell-7.2
https://devblogs.microsoft.com/scripting/powertip-use-powershell-to-get-computer-name/
If you have started with a script please post it here using the Code Sample button (the icon with 101010).
----------
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten