I'm testing some custom scripts and when it is passing a variable that has more than one word it is only passing the first word. I'm testing this by piping the output to a text file.
PowerShell -ExecutionPolicy Unrestricted C:\Scripts\Testing-Output.ps1 %givenName% %sn% %extensionAttribute2% %extensionAttribute1% %title% %department% %manager% %l% %telephoneNumber% %extensionAttribute4% %extensionAttribute3% %extensionAttribute5% %company%
Here is the test script:
param($FN,$LN,$SD,$DOB,$T,$D,$M,$L,$P,$NID,$UIN,$A,$O)
$FN,$LN,$SD,$DOB,$T,$D,$M,$L,$P,$NID,$UIN,$A,$O | Out-File -FilePath C:\Scripts\Output.txt