I have a script based powershell module (.psm1) and I have it imported into my main script. This module however needs to call a batch file that is located inside its same directory but apparently it is unable to see it. Currently the function in question looks like this:
function MyFunction
{
& .\myBatch.bat $param1 $param2
}
How can I make the function see the batch file?