For stuff like that I just dot source my script. If it’s not a real module and I just need it to stay resident in memory.
a single dot followed by a space followed by a dot backslash and the file name. . .
. .\get-freespace.ps1
Much faster than doing all the work to turn it into a module. However I like what you said better Don. Just pass the parameters it needs from the command line.
-VERN