potatoqualitee/tentools

Weird piping errors

potatoqualitee opened this issue · 1 comments

[132.18 ms] C:\github\tentools> Get-TNPolicy | Remove-TNPolicy
Remove-TNPolicy : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of
the parameters that take pipeline input.
At line:1 char:16

  • Get-TNPolicy | Remove-TNPolicy
  •            ~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidArgument: (:) [Remove-TNPolicy], ParameterBindingException
    • FullyQualifiedErrorId : InputObjectNotBound,Remove-TNPolicy

[139.07 ms] C:\github\tentools> Get-TNCredential
[123 ms] C:\github\tentools> Get-TNPolicy
[127.5 ms] C:\github\tentools> Get-TNPolicy | Remove-TNPolicy
Remove-TNPolicy : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of
the parameters that take pipeline input.
At line:1 char:16

  • Get-TNPolicy | Remove-TNPolicy
  •            ~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidArgument: (:) [Remove-TNPolicy], ParameterBindingException
    • FullyQualifiedErrorId : InputObjectNotBound,Remove-TNPolicy