window manager – How from command line open several files in app and minimize one of them?

From the Terminal, or in a shell file, I can open one or more files in a particular app from the command line and have all of their windows minimized like this:

open -a ~/Documents/doc1.txt ~/Documents/doc2.txt ~/Documents/doc3.txt
osascript -e 'tell application "TextEdit" to set miniaturized of every window to true'

Is there a command to minimize not all of thow windows but just a particular one of them, say the one for ~/Documents/doc1.txt?