Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors out in PowerShell 5.1 #8

Open
DKroot opened this issue Jun 3, 2021 · 1 comment
Open

Errors out in PowerShell 5.1 #8

DKroot opened this issue Jun 3, 2021 · 1 comment

Comments

@DKroot
Copy link

DKroot commented Jun 3, 2021

These functions could be very useful to me. I'm looking forward to using them.

Unfortunately, they failed to work for me completely in PowerShell 5.1:

PS> . .\exec.ps1
PS> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.17763.1852
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.17763.1852
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1


PS> exec { .\find.exe }
Write-Verbose : A parameter cannot be found that matches parameter name 'f'.
At C:\Users\DKorobskiy\Workspaces\Scripts\PowerShell\exec.ps1:16 char:79
+ ... se 'Executing native application {0} with parameters: {1}' -f $Script ...
+                                                                ~~
    + CategoryInfo          : InvalidArgument: (:) [Write-Verbose], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.WriteVerboseCommand

PS> exec { find.exe }
Write-Verbose : A parameter cannot be found that matches parameter name 'f'.
At C:\Users\DKorobskiy\Workspaces\Scripts\PowerShell\exec.ps1:16 char:79
+ ... se 'Executing native application {0} with parameters: {1}' -f $Script ...
+                                                                ~~
    + CategoryInfo          : InvalidArgument: (:) [Write-Verbose], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.WriteVerboseCommand
@viceice
Copy link

viceice commented Nov 10, 2021

i think this will be fixed by #7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants