From caee87cf983092ad846aaa0a006bdaea6caf4a61 Mon Sep 17 00:00:00 2001 From: onyx-and-iris <75868496+onyx-and-iris@users.noreply.github.com> Date: Sun, 30 Oct 2022 02:08:04 +0000 Subject: [PATCH] add pipe example in readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ca530ce..107bcbf 100644 --- a/README.md +++ b/README.md @@ -81,10 +81,10 @@ Voicemeeter factory function can be: #### `Through the Shell` -One liners should be run through a subshell +One liners should be run through a subshell, you may pipe the Remote object to a script block, for example: ```powershell -powershell { $vmr = Get-RemoteBanana; $vmr.strip[0].mute=$true; $vmr.Logout() } +powershell { Get-RemoteBanana | % { $_.strip[0].mute=$true; $_.Logout() } } ``` You may also save the object returned by a factory function to a local variable, then invoke any commands through the shell, for example: