Powershell V2 Find Scripts by keyword

by Oct 2, 2013

Hello

I am pretty new to PowerShell and have been learning for a couple of weeks. I have been using the Finding Scripts by Keyword script that got uploaded the other day. I have come across a problem and would like to learn why it happens.

When I run the script I get the following error. How would I go about fixing this problem

Out-GridView : A parameter cannot be found that matches parameter name 'PassThru'.
At F:ScriptsFind-Script.ps1:17 char:49
+       Out-GridView -Title 'F:Scripts'-PassThru <<<<  |
    + CategoryInfo          : InvalidArgument: (:) [Out-GridView], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.OutGridViewCommand

 

Any help would be great

Many thanks

Mark