The command below executes the Get-ChildItem cmdlet on the machine whose computer name is stored in the $RemoteComputer variable: Invoke-Command -Computername $RemoteComputer -ScriptBlock { Get-ChildItem "C:\Program Files" } More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.