Stats in Function

I would like to write some Function to perform different statistical test on my data but I got some error.

wlist="wave0, wave1, wave2"
StatsAnova1Test/T=1/Q/W/BF $wlist

wlist="wave0, wave1, wave2"
StatsAnova1Test/T=1/Q/W/BF wlist

what is wrong in this command?

Thanks
Reading the help file suggests that you can use your first method, but
(1) replace the comma delimiters with semicolons
(2) add the flag /WSTR=wlist
(3) and drop your final $wlist (it is replaced by the preceding flag)