<t>I have a .ps1 file in which I want to define custom functions.<br/>
<br/>
Imagine the file is called MyFunctions.ps1, and the content is as follows:<br/>
<br/>
Write-Host "Installing functions"<br/>
function A1<br/>
{<br/>
Write-Host "A1 is running!"<br/>
}<br/>
Write-Host "Done"<br/>
<br/>
```<br/>
<br/>
To run this script and theoretically register the A1 function, I navigate to the folder in which the .ps1 file resides and run the file:<br/>
<br/>
```<br/>
.\MyFunctions.ps1<br/>
<br/>
```<br/>
<br/>
This outputs:<br/>
<br/>
```<br/>
Installing functions<br/>
Done<br/>
<br/>
```<br/>
<br/>
Yet, when I try to call A1, I simply get the error stating that there is no command/function by that name:<br/>
<br/>
```<br/>
The term 'A1' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling<br/>
of the name, or if a path was included, verify that the path is correct and try again.<br/>
At line:1 char:3<br/>
+ A1 <<<<<br/>
+ CategoryInfo : ObjectNotFound: (A1:String) [], CommandNotFoundException<br/>
+ FullyQualifiedErrorId : CommandNotFoundException<br/>
<br/>
```<br/>
<br/>
I must misunderstand some PowerShell concepts. Can I not define functions in script files?<br/>
<br/>
**Note** that I have already set my execution policy to 'RemoteSigned'. And I know to run .ps1 files using a dot in front of the file name: .\myFile.ps1</t>