$PSCmdlet is not available

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
User avatar
xav197
Posts: 33
Joined: Thu Apr 08, 2010 8:02 am
Location: Montreal, QC, Canada
Contact:

$PSCmdlet is not available

Post by xav197 » Mon Apr 11, 2016 2:02 pm

Product, version and build: PowerShell Studio 2016 5.2.119
32 or 64 bit version of product: 64
Operating system: Win 8.1
32 or 64 bit OS: 64
PowerShell Version: 5.0.10586.117


Hello,

I noticed that $PSCmdlet is not available when editing Advanced Functions inside PowerShell Studio.

For example if I try to work on the following script and add $PSCmdlet at the line 90, It does not show in intellisense.
https://raw.githubusercontent.com/lazyw ... esktop.ps1

Did I miss something ?

Thank you
Francois-Xavier Cat
PowerShell MVP/SAPIEN MVP

User avatar
xav197
Posts: 33
Joined: Thu Apr 08, 2010 8:02 am
Location: Montreal, QC, Canada
Contact:

Re: $PSCmdlet is not available

Post by xav197 » Tue Apr 12, 2016 11:47 am

I just want to add that $PSCmdlet is working in adv functions but not in a multi layers/scopes one like the one in the link

Let me know if I can provide more information.

I hope this is not me missing out something... :-/

Thank you.
Francois-Xavier Cat
PowerShell MVP/SAPIEN MVP

User avatar
davidc
Posts: 5913
Joined: Thu Aug 18, 2011 4:56 am

Re: $PSCmdlet is not available

Post by davidc » Tue Apr 12, 2016 1:55 pm

This issue should be resolved in the next service release.

David
David
SAPIEN Technologies, Inc.

User avatar
xav197
Posts: 33
Joined: Thu Apr 08, 2010 8:02 am
Location: Montreal, QC, Canada
Contact:

Re: $PSCmdlet is not available

Post by xav197 » Wed Apr 13, 2016 8:58 am

davidc wrote:This issue should be resolved in the next service release.

David
Awesome! Thanks David
Francois-Xavier Cat
PowerShell MVP/SAPIEN MVP