Say I have this test.esp:
Without underscore: <%= $name %>
With underscore: <%= $name_value %>
If I run it directly on shell, it works fine:
$name = 'ABC'
$name_value = 'ABC'
Invoke-EpsTemplate -Path .\test.esp
Without underscore: ABC
With underscore: ABC
But if I put them in a build.ps1 script:
$name = 'ABC'
$name_value = 'ABC'
Invoke-EpsTemplate -Path .\test.esp
Then it doesn't work:
.build.ps1
Without underscore: ABC
With underscore:
This is also true for any variable name I try, except name and name_value. Even name_values doesn't work. Why is that?
Say I have this
test.esp:If I run it directly on shell, it works fine:
But if I put them in a
build.ps1script:Then it doesn't work:
This is also true for any variable name I try, except
nameandname_value. Evenname_valuesdoesn't work. Why is that?