Invoke-Item

Open files in their respective default programs. Note: This command can only be used through PowerShell. More information: https://learn.microsoft.com/powershell/module/microsoft.powershell.management/invoke-item.

Invoke-Item -Path {{path\to\file}}

Invoke-Item -Path {{path\to\directory}}\*

Invoke-Item -Path {{path\to\directory}}\*.png

Invoke-Item -Path {{path\to\directory}}\* -Include {{*keyword*}}

Invoke-Item -Path {{path\to\directory}}\* -Exclude {{*keyword*}}

Invoke-Item -Path {{path\to\directory}}\* -WhatIf