Create .seg.nrrd file outside of slicer

You might find the following thread helpful: .seg.nrrd versus .nrrd

Also, here is the documentation page on the .seg.nrrd format: Segmentations — 3D Slicer documentation