Need to escape $wc with preceding \
\$wc = New-Object System.Net.