You can read the user input using Read-Host like so:
Read-Host
$serial = Read-Host "Please input serial number: "
and to access the variable we use $serial, the dollar sign is referencing to a variable, and you can access this in your commands
$serial