I took the shortcut and wrapped rsapi.pl inside a bash script. I didn't want to mess with their code.

for i in *;do rsapi "$i" col username passwd;done

lame I know but it works.