Error sound bit

how to add this to end of macro?

/run SetCVar(“Sound_EnableSFX”, “0”)
put the bits that might cause an error here
/run SetCVar(“Sound_EnableSFX”, “1”)
/script UIErrorsFrame:Clear()

I am complete noob when it comes to this, any help would be appreciated!