PS_ExecuteScript
Description
Section titled “Description”Executes a power shell script
The result is being added to <gsWorkstationPath>\Logs\Temp\PSOut.log
Syntax
Section titled “Syntax”PS_ExecuteScript(sScript, sScriptArguments, bSigned, bRunUnrestricted) As Boolean
Parameters
Section titled “Parameters”sScript (String)
Section titled “sScript (String)”Full path to and name of Powershell script that should be executed
sScriptArguments (String)
Section titled “sScriptArguments (String)”Script arguments
bSigned (Boolean)
Section titled “bSigned (Boolean)”Is the script signed
bRunUnrestricted (Boolean)
Section titled “bRunUnrestricted (Boolean)”Should the script be executed even though the execution policy prevents it
Example
Section titled “Example”If bStatus Then bStatus = PS_ExecuteScript(gsPackageRoot & "\Kit\CapaInstaller.ps1", "", False, True)