is indeed the command you are looking for.
The script bellow uses two different system sounds.
if (State = 0) [color=#008000]; Checks the current state of variable "State". And if it is False (zero)...[/color]
SoundPlay *48 [color=#008000]; Plays a system sound...[/color]
State++ [color=#008000]; And changes the value of variable "State" to True (one).[/color]
Else [color=#008000]; Otherwise...[/color]
State := 0 [color=#008000]; Sets the value of State variable to False (zero)...[/color]
SoundPlay *16 [color=#008000]; And plays another system sound.[/color]
Suspend, Toggle [color=#008000]; In both cases suspend is toggled, but due to the overall logic of the routine, it is toggled to On whenever State was zero and off whenever it was one.[/color]
But SoundPlay can also play other Audio Files. To do that, provide an absolute path (such as c:\ExampleFolder\ExampleSound.wav) as the first parameter of the command.
Also, Keep this in mind:
All Windows OSes should be able to play .wav files. However, other files (.mp3, .avi, etc.) might not be playable if the right codecs or features aren't installed on the OS.