Hello,
Is there a way to keep the cmdletbinding when you compiled a ps1 script.
get-help [your_script.ps1] -full
can be
your_script.exe /?
I suppose that there is no way, but I hope there is one !
Sincerly yours
cmdletbinding / compiled ps1
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.
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.
Re: cmdletbinding / compiled ps1
When a script is packaged as an executable, it no longer runs as a 'normal' script. You can add a parameter to your package script to show help. All functionality from cmdletbinding can also be handled.
You may find the following helpful:
https://www.sapien.com/blog/2015/11/30/ ... able-file/
https://www.sapien.com/blog/2015/12/07/ ... able-file/
You may find the following helpful:
https://www.sapien.com/blog/2015/11/30/ ... able-file/
https://www.sapien.com/blog/2015/12/07/ ... able-file/
Brittney
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.