change in this way:
$results=invoke-command -computername $computerName -ea silentlycontinue `
-ev errRemote -scriptblock ${function:checkUrlOnSite} -argumentlist (,$urls)
You need to force the argument as an array with the comma notation (,$urls)