SpiceWorld2016_PowerShellUnplugged.psm1
function Show-SpiceWorld2016_Demo { $Path = (Join-Path $PSScriptRoot "SpiceWorld2016_PowerShellUnplugged.ps1") if ($host.Name -eq "Windows PowerShell ISE Host") { Psedit $Path } else { switch ($PSVersionTable.PSEdition) { "Desktop" { PowerShell_ise $Path } "Core" { Get-Content $Path } } } } |