- Aug
- 2,194
- 98
This does not work in v27;
...but the same thing works in v26;
I can get it to work in v27, by making a change;
but would like to know what has changed with PSHELL between versions.
Joe
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]
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
Joe