The command com.saxonica.CompileStylesheet does not allow a configuration file to be specified; this means it cannot be used to compile a stylesheet that contains calls to "integrated extension functions".
A patch has been produced that allows this command to take an additional option -config:filename in the same way as net.sf.saxon.Transform.
Note that if integrated extension functions are to be compiled, they must be Serializable classes, which means that they must not retain any references to objects that are not Serializable. In particular, the ExtensionFunctionCall object must not retain a reference to the StaticContext supplied via the supplyStaticContext() method.
This facility will become available in the first maintenance release after 22.214.171.124