You had a couple mistakes, the most notable being that you never created a PinMapping object that could then be referenced by calls to PutCellReference, PutSymbolReference, PutGate, and PutSlot. Attached is a modified version of your script which runs successfully to completion. Besides the PinMapping object, you also had a wrong argument on your calls to Slot.PutPin. The third argument has to match the pin name of the actual symbol.
PS: You'll have to change the path to the Library, where I put it was different in my environment.
pinMapping.vbs.txt.zip 1.1 KB