I have a question, I have a 2 scripts lets name then first.ps1 and second.ps1 and they look something like
first.ps1:
param(
[parameter(Mandatory=$True,ValueFromPipeline=$True)][string]$filename="",
[parameter(Mandatory=$True,ValueFromPipeline=$True)][string]$arguments=""
)
Function WriteFirst
{
Write-Host $filename
Write-Host $arguments
}
and second.ps1
param(
[parameter(Mandatory=$True,ValueFromPipeline=$True)][string]$log=""
)
Function WriteSecond
{
Write-Host $log
}
Now using c# (using embedded resource, nothing special) I want to join those two scripts into one, as lets say they can be separate modules from witch I can construct one final script for example first script will execute command and second will read console buffer for output.
Now question is about the pram, do I need to join then somehow or will they add up to itself or maybe override ??