I'm guessing this would just work normally, but double checking here since I'm not at my computer at the moment and can't check it. Basically, if there is a function you'd normally run from the console (say, mousefire(1);, would that simply be called like a normal function in a script (exactly how I just wrote it? Or is there a more efficient way of invoking these functions? Just so you know, the specific function I'd be calling is setFOV();. Running trace on the setFOV function didn't provide me with anything useful, so don't bother suggesting that.
I tried setting $Pref::Player::DefaultFOV and $Pref::Player::CurrentFOV instead, but upon using trace, it would seem that this only works with an "updateFOV" function, which I can't seem to figure out how to utilize. If someone could inform me on how to call this function, that'd be great, as I am assuming that it could be more efficient than setFOV, unless, of course, this is exactly what setFOV does anyway.