oh dear...
i use my density control powers to phase thru the jail, then pull my alaxara out if a poket dimesion i call my garage.

i create a portal in front of me that takes me to whereever the cookie is and speedafter you. when we come out, we are all on the promonade in deep space 9.

the now-sentient-cookie uses mystical cookie powers to make a body for iseelf (imagine toa ignika with a cookie for a head :b ) I un-fuse the olmak forom the cookie. Quark comes over whie we are squabbling over the olmak and traps the cookie in stasis, and pulls into his holodeck.
dun dun dun!