-
But, is it possible to call any function directly inside the loaded .ps1 files [as you say above] directly like Modules ? I am asking this because I am struggling to call a parameterised function inside a ps1 file using dot-sourcing from command line- function f([string]$a, [string]$b) { Write-Host "a...
-
Sorry, I think I am missing something. I tried what you suggested, but I get the following error. I ran using Powershell x86 command prompt shell as well as ISE. I am running from the directory where the file is saved i.e. same level The term '..\Test.ps1' is not recognized as the name of a cmdlet...