PSHELL and COM Object in v27

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
 
Aug 9, 2009
237
1
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
Thread starter Title Forum Replies Date
vefatica PSHELL changes directory Support 3
P PSHELL not working in TCC 26 Support 9
Joe Caverly PSHELL in v27 vs. 26 Support 17
vefatica @PSHELL? Support 5
Peter Murschall v27.00.17: PSHELL /S dosn't do nothing Support 8
Joe Caverly PSHELL and NTFS File Streams Support 2
vefatica PSHELL: How pass arguments to script? Support 15
Joe Caverly Using @PSHELL from @EVAL Support 8
vefatica PSHELL and @PSHELL fail the first time in a new TCC. Support 3
Peter Murschall Documentation Question to %@PSHELL Support 4
Joe Caverly PSHELL and @PSHELL errorlevel values Support 4
Joe Caverly PSHELL and out-of-process servers Support 2
Joe Caverly PSHELL /C Support 7
vefatica What happens to PSHELL after 20 seconds? Support 9
Joe Caverly .PS1 script does not work with PSHELL Support 11
Joe Caverly How to use Powershell Profile with PSHELL Support 14
samintz PSHELL's CWD Support 2
Joe Caverly Missing PSHELL in HELP Support 0
Joe Caverly PSHELL Blank Line Display Support 2
vefatica PSHELL? Support 6
Joe Caverly PSHELL and Receive-Job Support 4
Joe Caverly PSHELL Error? Support 16
Joe Caverly Documentation @PSHELL Support 0
M Fixed PSHELL command returns error Support 2
Charles Dye Old download links on JPSoft.com home page Support 0
vefatica SENDMAIL via smtp.gmail.com? Support 3
D Can't reach jpsoft.com Support 2
C SendMail and yahoo.com Support 1
rconn News jpsoft.com server crash Support 0
vefatica Is jpsoft.com having ISP problems? Support 10
vefatica TCC and dllhost.exe (COM surrogate) Support 4
jbanaszczyk registration@jpsoft.com Support 0
MickeyF problem using COM object in VBScript from v16 x64 TCC but not from v15 32-bit TCC Support 4
S Suggested minor improvements for www.jpsoft.com Support 5
Joe Caverly COM Interface Support 29
C Error when accessing jpsoft.com Support 3
rconn News JPSOFT.COM Hacked Support 8
C Nit w/http://jpsoft.com/downloads/v13/tcmdupdate.aiu Support 1
vefatica bluepearl-skins.com Support 2
D cannot get into ftp://jpsoft.com/oldver Support 1
C copy /g /u "http://...dropbox.com/..." not working Support 9
G Where is JpSoft.com? Support 12
C jpsoft.com/oldver/index Support 1
Roedy more.com stops working Support 1
S V9 builds on ftp.jpsoft.com Support 2
B jpsoft.com Support 1
vefatica DNS lookup of jpsoft.com Support 4
fpefpe How to? Rexx -- Regina / Object Rexx Support 2
fpefpe How to? Rexx, Object Rexx Support 3

Similar threads