Are you looking to perform a or a data recovery layout? Share public link
This command will create a sparse image file at /tmp/HighSierra.sparseimage .
If you cannot download the OS via the App Store (perhaps you are currently on a newer OS like Monterey or Ventura that blocks the download), you may need to download a standalone file.