Split Output into multiple CSVs

  acl, fileserver, powershell, windows

I have a txt with 19 500 000 of lines (each line is a full path of file or folder). I need to go with a foreach loop and get the ACLs, later save the output into CSV, but I need to split this CSV in files every 1000 lines.

I am at a loss; I appreciate any help or recommendation.

Source: Windows Questions