How to pass a switch parameter to another PowerShell script?
Try
compile-tool1.ps1 -VHDL2008:$VHDL2008.IsPresent
You can specify $true
or $false
on a switch using the colon-syntax:
compile-tool1.ps1 -VHDL2008:$true
compile-tool1.ps1 -VHDL2008:$false
So just pass the actual value:
compile-tool1.ps1 -VHDL2008:$VHDL2008