I have a .ps1 file in which I want to define custom functions.
Imagine the file is called MyFunctions.ps1, and the content is as follows:
Write-Host
Try this on the PowerShell command line:
. .\MyFunctions.ps1 A1
The dot operator is used for script include.