There’s a magic variable called $MyInvocation that has a number of properties you can access, including the location of the current script. We cover it pretty well in “The PowerShell Scripting and Toolmaking Book,” if you have that. Given that location, you just use Import-CSV or whatever.
Thanks Don. I checked out MyInvocation, but it didn’t have the properties I was after.
However, I just found a property of the module itself called $MyModule.ModuleBase that gives me the path to the module directory. From there I can check for the CSV file within that directory: