If you need to play sounds like a task completion sound from your PowerShell scripts, use these CmdLets. Note; This depends on WillPittenger.Goodies.Sounds.
$ dotnet add package WillPittenger.Goodies.PowerShell.SoundsProvides three CmdLets for use in PowerShell to play sounds. The main known use case is for when you need to play a completion sound when a task completes.