# Unable to import .m file in WSTP

I'm having a LabView program I have communicate with a Mathematica kernel via WSTP and I'm having the darnest time trying to import a .m file that has a bunch of predefined functions needed to automate data processing. I have in the same directory as the VI a file called "VNA.m" that needs to be imported so that it can processes a directory full of files that the VI creates and build plots automatically. However whenever I try to run the command after building it I always get "\$Failed" returned. The command I'm trying to execute is this:

Import["C:\\Users\\Surge\\Desktop\\test\\VNA.m"]


However, when I run it in Mathematica, it imports the file just fine. I thought it may be an issue a standalone kernel has with importing files in general, but when I put the m file in another directory and execute the following command in WSTP, it works just fine.

Import["C:\\Users\\Surge\\Documents\\Physics SeniorProject\\Software\\Labview WSTP Link\\VNA.m"]


Similarly, if I try to export a file it doesn't work half the time either. The following command just as before doesn't work with WSTP and works well in Mathematica.

Export["C:\\Users\\Surge\\Desktop\\test\\VNA.dat", Table[0,{15}]]


And the following command works in both.

Export["C:\\Users\\Surge\\Documents\\Physics SeniorProject\\Software\\Labview WSTP Link\\VNA.dat",Table[0,{15}]]


Both work just fine in Mathematica and import all functions as expected. Is there something that I'm missing here? Are there rules to file i/o that I am not aware of? This is extremely frustrating, because anything involving files doesn't work half the time. I can simply move my VI to a directory that works, but aside from the obvious obvious problem of not having a clear understanding of what's going on, this produces a problem with importing data, sometimes it works and sometimes it doesn't, and it would be really nice if it can be made to work more consistently than that. Anyone have any idea what's going on?

Surge

"C:\\\\someDir\\\\"