-2

I'm trying to call a PowerShell script from another PowerShell script. The script I'm trying to call is in a subfolder named "Release" of the current directory.

I tried the following command but get an 'file not found' error from the PowerShell console.

."..\Release\out-datatable.ps1"
Arturka1
  • 65
  • 1
  • 2
  • 11

1 Answers1

0

I have solved this by simply change to the subdirectory. I wrote the following command to my script

cd Release

. .\out-datatable.ps1
Arturka1
  • 65
  • 1
  • 2
  • 11