If you want to do without running an an external app.
Code:
alias sbeep .comopen beep WScript.Shell | if !$comerr { .comclose beep $com(beep,Run,3,bstr,% $+ comspec% /c ,uint,0,bool,true) }