Package multiple resources

How can I package multiple files when packaging a script as exe

I used the following in my package.psd1:
Resources = [string]@(“file.txt”)

And in my script I use these resources by command below: Get-Resource -Name ‘file.txt’

How can I have multiple files in the string resources?
And how can I call them back in the script.

You should be able to just include another resource name in the array when packaging.

Resources = [string[]]@(“file.txt”, "file2.txt")
1 Like