Get-IsRemote

SYNOPSIS

Returns $True if the current Powershell session is running remotely