How to specify value converter in manually created binding

Is it possible to use value converters in a manually created binding expression? I’ve been dynamically creating binding expressions in a certain part of my app and they’ve worked fine, but now I’m finding that a value converter would be beneficial but I can’t figure out how to get it to work. I keep getting errors like the below when creating the expression

No ValueConverter named “commandActive” was found!

I’m creating my bindings with code similar to this

let expression = index | commandActive:${Command.ChangeView}:View;
this.BindingEngine.createBindingExpression(“class”, expression).createBinding(element)

I’ve used a require element in my view to the file holding all of my value converters. I think I need to register it manually somehow but I can’t figure out how. Would appreciate any guidance!