me gustaría incluir archivos de comandos con tales seudo sintaxis:Incluir archivos relativos en PowerShell
Include '.\scripA.ps1'
Pero la única cosa que he encontrado es algo como esto:
$thisScript = Split-Path -Path $MyInvocation.MyCommand.Definition -Parent
. ($thisScript + '.\scriptA.ps1')
que es feo .
¿Hay alguna forma de agradable para incluir scripts con rutas relativas?
PowerShell es feo – tofutim