Is it possible to create a virtual switch from within an apps code?

Check this thread -- looks like the namespace is hubitat: