I have the below specified in my Microsoft.PowerShell_profile.ps1 file
Import-Module PSRR
and I get the below error when launching PowerShell
At C:\Users\user\Documents\WindowsPowerShell\Modules\PSRR\Set-RegMultiString.ps1:16 char:4
+ []
+ ~
Missing type name after '['.
At C:\Users\user\Documents\WindowsPowerShell\Modules\PSRR\Set-RegMultiString.ps1:15 char:39
+ [Alias('CN','__SERVER','IPAddress')]
+
~
Parameter declarations are a comma-separated list of variable names with optional initializer expressions.
At C:\Users\user\Documents\WindowsPowerShell\Modules\PSRR\Set-RegMultiString.ps1:15 char:39
+ [Alias('CN','__SERVER','IPAddress')]
+
~
Missing ')' in function parameter list.
+ CategoryInfo : ParserError: (:) [], ParseException
+ FullyQualifiedErrorId : MissingTypename
I can Import-Module PSRR manually without any errors. Any idea?