When you run a searches in the UI it makes an http...
# suitescript
j
When you run a searches in the UI it makes an http request to some script handler. HTTP request converts all your parameters to strings. So it might work in the UI with an array of numbers (since it gets converted), but not on the server