Don’t copy and paste the same code over and over again. Instead, create a PowerShell function and save yourself time.
I find your question a bit weird. As far as I know, hifi amplifiers have, like AV receivers, a significant number of (sound) inputs, and some way to switch between them. But if I read your message ...