Ah, OK, that is certainly a good use for multiple solids in one STL file. You're going to have trouble with Assembly.toCompound though, I just checked and it creates one STL solid with a discontinuous mesh.
For Prusa Slicer you can export to multiple STLs (one per Solid) and import them together. It recognises them as one part and positions them properly.
Good luck!