$systemlist is not anarray, so ascan() will not work on it.

do this...

$SystemList = 'terminalserver',''