using powershell to open multiple txt files in directory

You will want a script like this:

get-childitem *.txt |foreach-object {
    notepad $_.name
}

This basically pipes the result object from a query for all txt files into the foreach-object, which then iterates through the resultset name by name and executes a command.