You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You're right, the OutputRendering is only in 7.2+ and that break usability with 5.1. As it is not a mandatory, I can either add a condition for the PowerShell version to include this only with 7.2+ or simply delete the line as the result seems not impacted if not present with 7.2+.
For the $env not resolved correctly it may be because of how the script get it:
As I use RoyalTS Tokens replacement, I had to use single quotes to prevent PowerShell from attempting to expand $CustomProperty.xxx$ incorrectly.
Unfortunately this block variables expansion link $env that can be set in the property field. I'll try to find another way to evaluate the value set correctly before use.
I'll keep you tuned with update if I find a patch for those issues !
I was excited to see this script pop up the other day.
I suggest adding this to the header of the script:
$PSStyle.OutputRendering = 'PlainText'
was introduced in v7.2.Also, I am unable to get past the check for the bw executable.
If I run the following in my terminal it works fine, but setting that path in the Custom Property field it will error out.
Further testing, I exported
env:
to a log file and it shows the correct values.The text was updated successfully, but these errors were encountered: