function
less than a minute
If a script is basically a function then you need to add it to the “function drive” on the computer before you can execute it. So running functionscript.ps1 will do nothing.
To add a function script to the function drive run the following command:
. c:\path\to\script.ps1
NOTE THE SPACE BETWEEN THE PERIOD AND C:\
Then just execute the function as normal.
Last modified July 21, 2024: update (e2ae86c)