I'm not familiar with IWshShell_Class but a class isn't an object so just try

Dim oShell As New IWshShell_Class