Quest uses a flag (aka Boolean attribute) called "isopen" to remember the state of a container. Just set the isopen flag on the crate to true in the command. Usde the SetObjectFlag script, and set it up like this:
Set object [flag] [crate] [isopen]
Or in code:
crate.isopen = true