Then replace the
rm
with sed -i '/\<autospawn\>/d' $HOME/.config/pulse/client.conf
...