How to Open File from PowerShell and Command-Line?
To open a file regardless of its type/extension, you can use one of the below methods:
Start "file path"
PS C:\Users\spfarm> start c:\debug.to.txt
This cmdlet is also working properly in Command Prompt (CMD)
ii "file path"
The ii is the abbreviation of
How to Open File Explorer In PowerShell?
You can easily open a program like a notepad or File explorer using the same above cmdlets
Invoke-Item as the following:
How to Open a specific folder path in PowerShell?
Again, you can use the same methods to open a specific folder location in PowerShell as the following: