Ask your PowerShell-related questions, including questions on cmdlet development!
Forum rules Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 5 years and 9 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
In SAPIEN PowerShell studio, I can run script2.ps1 and it will work fine, but the function "print" is greyed out, which is both visually distracting since it's incorrectly stating the function is "unknown" and makes it so I can't right click and go straight to the method.
Can I configure SAPIEN in a way such that it can find functions from included files? Perhaps there's another way to include the file?
At the same time, for PowerShell Best Practice, you should follow PowerShell naming schema Verb-Noun format. Avoid use of possible reserved words or existing application names.
You could use "Get-Print" instead of "Print" as a function name.
This topic is 5 years and 9 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.