Powershell 指定的模块';updateScript';未加载,因为在任何模块目录中找不到有效的模块文件

Powershell 指定的模块';updateScript';未加载,因为在任何模块目录中找不到有效的模块文件,powershell,Powershell,每当我在Window的10机器上启动PowerShell时,就会出现以下错误 import-module : The specified module 'updateScript' was not loaded because no valid module file was found in any module directory. At C:\Windows\System32\WindowsPowerShell\v1.0\profile.ps1:48 char:1 + import-mod

每当我在Window的10机器上启动PowerShell时,就会出现以下错误

import-module : The specified module 'updateScript' was not loaded because no valid module file was found in any
module directory.
At C:\Windows\System32\WindowsPowerShell\v1.0\profile.ps1:48 char:1
+ import-module updateScript
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (updateScript:String) [Import-Module], FileNotFoundException
    + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand

get-newScript : The term 'get-newScript' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Windows\System32\WindowsPowerShell\v1.0\profile.ps1:49 char:1
+ get-newScript -scriptPath $scripts
+ ~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (get-newScript:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

这是我第一次尝试在那台机器上使用PowerShell。类似配置的其他计算机上没有错误

您的个人资料中似乎有一些内容。只需运行
ii$profile
。文本文件应该在您可能必须删除这些命令的位置打开…

您的配置文件中似乎有一些内容。只需运行
ii$profile
。应该打开一个文本文件,其中可能需要删除这些命令