How would I..

How would I play a sound with console or ingame so just one person hears? I have ULX.

play [soundpath] in console. You can do it in lua via surface.PlaySound.

I am trying to make it so I could put something like playsound [path] [name of person to make it play for]. Is that possible?

You could make a lua file that assigns surface.PlaySound to a concommand that will take a path and user argument.