OK, I added:

 Code:
Dim $strCommand
$strCommand = 'Set Session = CreateObject("Microsoft.Update.Session","' + $strWks + '")'
? "The update session command is:"
? $strCommand
$objSC.AddCode($strCommand)


It gets past the AddCode method now and is failing on the run with invalid number of parameters. I think I need to give the code a name and specify that in the run command. Still looking. \:\)