Getting User group members using Powershell

I got a script Invoke-Command {net localgroup administrators} which only work in server 2012 & not in server 2008R2, getting error as mentioned …

Windows 2008 VPS via Getting User group members using Powershell.