@MatthewN
What is the Windows Powershell version? You can see it by opening a Powershell ISE console and
PS H:\> $Host.Version
Major Minor Build Revision
----- ----- ----- --------
PS H:\>
WFA as of now has been verified for Powershell version 3.0 which comes by default with Windows 2012 R2. For higher versions, discover parameters can thrown some error.
1. You'll have an unwanted 'Pipeline Variable' coming up on Powershell version 4.0 which is a known issue.
I haven't tried with Posh v5.0
sinhaa
If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.