set-pwdocumentstate - doesn't like wre?

We have wre enabled and workflow applied to folder. in this instance when using set-pwdocumentstate we get a ProjectWise 58268 error returned. "Manual change state not allowed. Please use Workflow customization rules to change document state" - is there a way of using PowerShell to change the state of a document in wre workflow?