Powershell function call changing passed string into int

Your have a syntax problem: FindInAD($nameOfDeviceInput.Text).Count # WRONG Note: Wrong in this context means: the syntax is formally valid, but doesn’t do what you expect – see the bottom section. It should be: (FindInAD $nameOfDeviceInput.Text).Count PowerShell commands – functions, cmdlets, scripts and external programs – are invoked like shell commands – foo arg1 arg2 – … Read more