Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

PSHELL and COM Object in v27

Aug
1,955
71
This does not work in v27;
Code:
e:\utils>pshell /s "$p = new-object -com jlcutils.clsMath"

e:\utils>pshell /s "$p.ppp(8.80)"
PSHELL: System.Management.Automation.MethodException : Argument: '1' should be a System.Management.Automation.
PSReference. Use [ref].

e:\utils>ver

TCC  27.00.18 x64   Windows 10 [Version 10.0.19042.746]
...but the same thing works in v26;
Code:
e:\utils>pshell /s "$p = new-object -com jlcutils.clsMath"

e:\utils>pshell /s "$p.ppp(8.80)"
3.9952

e:\utils>ver

TCC  26.02.43 x64   Windows 10 [Version 10.0.19042.746]

I can get it to work in v27, by making a change;
Code:
e:\utils>pshell /s "$p.ppp([ref]8.80)"
3.9952
but would like to know what has changed with PSHELL between versions.

Joe
 
This does not work in v27;
Code:
e:\utils>pshell /s "$p = new-object -com jlcutils.clsMath"

e:\utils>pshell /s "$p.ppp(8.80)"
PSHELL: System.Management.Automation.MethodException : Argument: '1' should be a System.Management.Automation.
PSReference. Use [ref].

e:\utils>ver

TCC  27.00.18 x64   Windows 10 [Version 10.0.19042.746]
...but the same thing works in v26;
Code:
e:\utils>pshell /s "$p = new-object -com jlcutils.clsMath"

e:\utils>pshell /s "$p.ppp(8.80)"
3.9952

e:\utils>ver

TCC  26.02.43 x64   Windows 10 [Version 10.0.19042.746]

I can get it to work in v27, by making a change;
Code:
e:\utils>pshell /s "$p.ppp([ref]8.80)"
3.9952
but would like to know what has changed with PSHELL between versions.

Joe
bump!

Sadly my eval version of tcc27 has expired. Hopefully theirs an answer on @pshell as it does not work as it did in previous version. So what changed
 

Similar threads

B
Replies
1
Views
3K
Back
Top