How to use TotalSegmentator from Script with "--no-main-window" option

This thread should help: