
In a prompt, you can simply copy-paste the code of the function into a prompt, press ENTER two times and because by then it’s loaded into memory, you can call the function during that PowerShell session.Ī script, like you are trying to do, works a little different. You can load it by opening it in ISE, hit F5 (execute) and then you can use it by calling the name of the function.


You can use a function in the following way: First load it, then call it. Don’t worry, we all start at the beginning at some point 🙂
