Audio-switcher pulseaudio interface auto connect request

Is there any particular reason why a confined app would want to use pacmd? If the app is trying to script something, it would be better off using the Pulse Audio API directly or an equivalent pactl invocation.