“A Bug’s Life” is episode eighteen of season one of Farscape.
Moya is being approached by a Peacekeeper Marauder ship which is suffering problems and which wants to board. Crichton comes up with a ploy to deal with them – he and Aeryn will be Peacekeepers, and everyone else (except Pilot and Chiana) will be back in their cells as ‘prisoners.’ Otherwise they might actually end up being prisoners, as Moya, and many of the others, are escaped prisoners.
This doesn’t go quite to plan (what a surprise!) as the Captain of the Marauder uses Peacekeeper regulations to take control of the whole ship, and its crew, in order to fulfil his mission. Crichton objects to that, fairly successfully, but they are given coordinates to a new, hidden Peacekeeper base in the Uncharted Territories.
The Marauder’s cargo gets free, with a bit of help from Chiana and Rygel – looks like it’s a bug hunt.