Hello,
I am confronted with a strangeness.
I use: #requires -Modules xxx at the start of my script.
It works perfectly when I run the script from Powershell studio.
However, once transformed into an executable, the module no longer loads and its variables are no longer available.
The variables are indicated as not found in the transcript output file with the executable but no errors displayed launched from powershell studio.
What is happening and how to fix the problem?
Thanks in advance,
I am confronted with a strangeness.
I use: #requires -Modules xxx at the start of my script.
It works perfectly when I run the script from Powershell studio.
However, once transformed into an executable, the module no longer loads and its variables are no longer available.
The variables are indicated as not found in the transcript output file with the executable but no errors displayed launched from powershell studio.
What is happening and how to fix the problem?
Thanks in advance,
Statistics: Posted by Philaubur — Mon Jun 24, 2024 7:10 am