https://www.pstips.net/getting-computer-serial-number.html
$ComputerName
=
$env:COMPUTERNAME
$serial
= (
Get-WmiObject
-ComputerName
-Class
Win32_BIOS).SerialNumber
"Your computer serial is $serial"