Invoke-Item is another cmdlet that you don’t see used that often but there is one place where its invaluable – opening files. If you give Invoke-Item the path to a file
Invoke-Item -Path .\procs.txt
The file will be opened with the default application associated with that extension. In this case Notepad.
If you use a PowerShell script file
It will be opened in Notepad for you to examine. CSV files automatically open in Excel and other Office files are opened in the correct application.
Using the alias ii for Invoke-item makes it even easier.