SOLVED

wronge output

%3CLINGO-SUB%20id%3D%22lingo-sub-91343%22%20slang%3D%22en-US%22%3Ewronge%20output%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-91343%22%20slang%3D%22en-US%22%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAlexanderHolmeset%2FSkype-for-Business-Automatic-RGS-Holidayset%2Fblob%2Fmaster%2FSkypeForBusines_Automatic_RGS_Holiday.ps1%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FAlexanderHolmeset%2FSkype-for-Business-Automatic-RGS-Holidayset%2Fblob%2Fmaster%2FSkypeForBusines_Automatic_RGS_Holiday.ps1%3C%2FA%3E%3CBR%20%2F%3EAny%20idea%20why%20i%20get%20the%20output%20that%20is%20on%20the%20black%20shell%20window%3F%20It%20only%20stores%20one%20day%20correctly.%3CBR%20%2F%3E%3CBR%20%2F%3EShould%20output%20like%20the%20blue%20shell%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-91343%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EWindows%20PowerShell%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-91373%22%20slang%3D%22en-US%22%3ERe%3A%20wronge%20output%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-91373%22%20slang%3D%22en-US%22%3E%3CP%3E%24x%20needed%20to%20be%20an%20Array.%3C%2FP%3E%3CP%3ENow%20its%20working%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-91356%22%20slang%3D%22en-US%22%3ERe%3A%20wronge%20output%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-91356%22%20slang%3D%22en-US%22%3E%3CP%3ELooks%20like%20what%20my%20script%20does%20is%20that%20it%20creates%20a%20bunch%20of%20holidaylist.%3C%2FP%3E%3CP%3ENeed%20to%20be%20like%20this%20instead%3A%20-Holidaylist(%24a%2C%24b%2C%24c)%3C%2FP%3E%3CP%3EAny%20idea%20how%20i%20can%20do%20that%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
MVP
https://github.com/AlexanderHolmeset/Skype-for-Business-Automatic-RGS-Holidayset/blob/master/SkypeFo...
Any idea why i get the output that is on the black shell window? It only stores one day correctly.

Should output like the blue shell
2 Replies

Looks like what my script does is that it creates a bunch of holidaylist.

Need to be like this instead: -Holidaylist($a,$b,$c)

Any idea how i can do that?

 

Best Response confirmed by Alexander H (MVP)
Solution

$x needed to be an Array.

Now its working