Can't do the following from openssh installer to find the latest powershell core.
get-command "c:\program files\PowerShell*\PowerShell.exe"
So the weird thing is to do the same thing for any other default shell candidate from third parties - this would likely work - to, for instance, find the latest bash.exe
I can do a work around by using the versioned folder for now - but that only handles the default install location where the methodology of a versioned folder is followed by convention. If someone drops it in another folder or I try get-command against the file unpathed - I won't find a version.
There are obviously a lot of other reasons this should be done - just giving light to a very practical and current scenario.
Can't do the following from openssh installer to find the latest powershell core.
get-command "c:\program files\PowerShell*\PowerShell.exe"
So the weird thing is to do the same thing for any other default shell candidate from third parties - this would likely work - to, for instance, find the latest bash.exe
I can do a work around by using the versioned folder for now - but that only handles the default install location where the methodology of a versioned folder is followed by convention. If someone drops it in another folder or I try get-command against the file unpathed - I won't find a version.
There are obviously a lot of other reasons this should be done - just giving light to a very practical and current scenario.