Each line from computers.txt is piped to ForEach-Object which runs the MyFunction command passing the current computer name as the parameter value ($_) for the computer parameter. For a small list, ...
If you want to view a Text file in Command Prompt window or PowerShell window in your Windows 11/10 system, then this tutorial will help you. You can view the entire text file or partial content using ...