I wrote a PowerShell script that's accepting input from the pipeline plus some parameters.
Now, when I want to call the script from another directory, the following doesn't work:
Get-ChildItem | 'D:\My Documents\PowerShell\My-Script.ps1' -MyParam 1 -OtherParam 'Test'
How do I call a PowerShell script residing at a path having spaces from another directory with parameters and pipeline input?