I have 2 arrays. If Joe Root is entered and exists, how can I print that array and the age "67" from the other array?
$myarr = ("John Morales", "Joe Root", "Peter Barkley" )
$myarr1 = (45, 67, 31)
$name = read-host "Enter your name"
if ($myarr -contains $name)
{
write-host "Name Age"
write-host "-------- ---"
"{0,-11} {1,10}" -f "
}