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

timecmd InvalidOperation at tme.ps1:7 #44

Open
hollowknight opened this issue Jun 25, 2021 · 1 comment
Open

timecmd InvalidOperation at tme.ps1:7 #44

hollowknight opened this issue Jun 25, 2021 · 1 comment

Comments

@hollowknight
Copy link

InvalidOperation: C:\Users\nguyenc\scoop\apps\psutils\current\time.ps1:7
Line |
   7 |  & $cmd @args
     |    ~~~~
     | The expression after '&' in a pipeline element produced an object that was not
     | valid. It must result in a command name, a script block, or a CommandInfo object.

~#@❯ $PSVersionTable

Name Value


PSVersion 7.2.0-preview.6
PSEdition Core
GitCommitId 7.2.0-preview.6
OS Microsoft Windows 10.0.21390
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0

@eggbean
Copy link

eggbean commented Jul 31, 2024

Same. I'm trying to run it from cmd.exe, so I need to type timecmd.

> timecmd
The expression after '&' in a pipeline element produced an object that was not valid. It must result in a command name, a script block, or a CommandInfo object.
At C:\ProgramData\scoop\apps\time\current\time.ps1:7 char:3
+ & $cmd @args
+   ~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : BadExpression

00:00:00.0708228

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