Product: PowerShell Studio 2024 (64 Bit)
Build: v5.8.243
OS: Windows 10.0.19045
PS Version(s): 5.1.19041.1, 7.3.4, 7.3.4
Hi,
Is there a way in PowerShell Studio projects to get the contents of included PS1 files into Jobs (or other PS sessions)?
For example - to do this with "non-included" PS1 files, I do something like:
....... and then pass the variable to the job as (as an argument or InitializationScript etc)
Can the same be achieved when the source in an included (merged) PS1 file?
Build: v5.8.243
OS: Windows 10.0.19045
PS Version(s): 5.1.19041.1, 7.3.4, 7.3.4
Hi,
Is there a way in PowerShell Studio projects to get the contents of included PS1 files into Jobs (or other PS sessions)?
For example - to do this with "non-included" PS1 files, I do something like:
Code:
$script:initialisationScript1 = ([Scriptblock]::Create((Get-Content ".\someFile.ps1" -raw)))
Can the same be achieved when the source in an included (merged) PS1 file?
Statistics: Posted by mark106 — Thu Jun 06, 2024 2:43 pm