Kent, did you add the Value property to the end of those statements ? Like this:

$objEmail.Configuration.Fields.Item("whatever").Value = aNumber

Kixtart DOES have one very important COM limitation, one cannot write (set/put) data in a "open-ended" fashion like this:

$objEmail.Configuration.Fields.Item("whatever") = aNumber

The above statement is actually using default properties here, and support for those is somewhat limited and restricted in Kixtart ... but basically when setting properties, a COM expression has to "end" with a specific settable property value.

Most COM object use the "Value" property as the default value. But to make it work for scripting languages like Kixtart, it also has to support the Value property explicity - most do but some dont (for example, some Excel properties) ...