Script Packager now allows you to add more than one icon when packaging to an executable file.
Added new functions in $SAPIENHost to determine execution status:
bool IsDebugging() returns true when a script is running in the SAPIEN Microsoft PowerShell debugger.
bool IsTesting() returns true when a script is being profiled using the SAPIEN Script profiler.
bool IsPackaged() returns true when a script is packaged as an executable.
These functions are available for PowerShell and PowerShell Core 7.1 and later. Scripts packaged as a Microsoft Windows Service do not have a $SAPIENHost object.