从共享文件夹导入Carbon Powershell模块

从共享文件夹导入Carbon Powershell模块,powershell,import,module,Powershell,Import,Module,我使用Powershell远程处理2.0版。 我已下载Powershell模块。我在共享文件夹中复制了它: \SharedServer\PowershellModules\Carbon-1.0.0 在我的脚本ps1中,我有以下源代码: $PSPathCarbon = "\\SharedServer\PowershellModules\Carbon-1.0.0\Carbon" . (Join-Path $PSPathCarbon Import-Carbon.ps1) 我得到以下错误: 术语 “\

我使用Powershell远程处理2.0版。
我已下载Powershell模块。我在共享文件夹中复制了它:

\SharedServer\PowershellModules\Carbon-1.0.0

在我的脚本ps1中,我有以下源代码:

$PSPathCarbon = "\\SharedServer\PowershellModules\Carbon-1.0.0\Carbon"
. (Join-Path $PSPathCarbon Import-Carbon.ps1)
我得到以下错误:

术语 “\SharedServer\PowershellModules\Carbon-1.0.0\Carbon\Import Carbon.ps1” 无法识别为cmdlet、函数、脚本文件或的名称 可操作程序。检查名称的拼写或路径是否正确 包括,请验证路径是否正确,然后重试

有什么建议吗?

试试:

. (Join-Path $PSPathCarbon 'Import-Carbon.ps1')
或:


它说您需要64位版本的powershell。有吗?当您运行测试路径“$PSPathCarbon\Import Carbon.ps1”时,您得到的是真还是假?也试试这个
. "$PSPathCarbon\Import-Carbon.ps1"