Hi,
I'm trying to call stored on the server powershell script from buildmaster's global powershell script using Invoke-Expression, but getting error:
The term 'C:\Path\To\PowerShell\script.ps1' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
I've also tried another ways to run it, such as:
Invoke-Expression C:\Path\To\PowerShell\script.ps1
. C:\Path\To\PowerShell\script.ps1
& C:\Path\To\PowerShell\script.ps1
C:\Path\To\PowerShell\script.ps1
Each of them cause the same error.
Could you clarify how can I call stored on disk external ps1 script from BuildMaster's powershell script?
Product: BuildMaster
Version: 6.0.4