Hello Tiberious and welcome…
Please format your examples as code, it makes it easier for us to read and test ourselves. Have a look here
Guide to posting code.
You can go back and edit your post rather than repost the code.
I’ll not go deeper before the formatting is fixed, but I have a couple of initial thoughts…
If there’s a hard age limit for accounts, would it not be better to just check the age field before creating the account - if the age is above 75 just skip to the next user?
If your moreNames.txt file actually is formatted as you describe you’re probably better of using Import-Csv rather than Get-Content. Powershell handles CSV content much more conveniently than it does pure text.
Finally, I’d really recommend you to use more descriptive variable names in your scripts.As the scripts get longer and more complex you want to know what the variables contain rather than what type they are.