baking active smoke domain script?

bpy.ops.ptcache.bake_from_cache() doesnt seem to work.

I’d like to “current cache to bake” an active object but through a script.