Newbie here on PS…
Here’s the sample code…
$a = “Litware”
$cmd = “.\$a.helloworld.ps1”
Invoke-expression $cmd
Fails with “….the term ‘.\litware.helloworld.ps1’ is not recognized as the name of a cmdlet…”
Whereas, I can simply run manually .\litware.helloworld.ps1 in a PS shell and it works fine…
I think I’m missing some steps…
Appreciate any advice or guidance here…
TIA
Magellan