PowerShell Audio

For wav files.

$o = new-object media.soundplayer audio.wav
$o.play()
$o.playsync()
$o.stop()
$o.playlooping()

A function:

function play($f, [switch]$loop=$false) {
	if (test-path "$pwd\$f") {$f = "$pwd\$f"}
	$o = new-object media.soundplayer $f
	if ($loop) {$o.playlooping()} else {$o.play()}
	return $o
}