I didn't realize foobar had an alias for it to play, which is /aud
foobar: {
/aud
else { echo foobar is not currently playing. }
}
works to make it like a popup (scripts editor->popup->channels) though, in case anyone also wondered about this. This is what I came up with anyways, knowing very little about scripts.