Add Get-PSScriptFileInfo cmdlet
Summary of the new feature / enhancement
As a user I want a Get-PSScriptFileInfo cmdlet to return a PSScriptFileInfo object from a specified script. This functionality was present in PowerShellGet v2 using the Test-ScriptFileInfo cmdlet.
Proposed technical implementation details (optional)
No response
What if we added -PassThru on Test-ScriptFileInfo? We can have discussions on keeping this as default behavior for Test-ScriptFileInfo as well.
I'd be fine with changing the default behavior for Test-ScriptFileInfo to return an object of the script info metadata. Then no -PassThru flag is needed or a new cmdlet. It also matches the behavior of Test-ModuleManifest.
After some discussion, we determined that a Get-PSScriptFileInfo cmdlet is the best option this cmdlet would take a -Path parameter