Teks output setelah powerShell karakter tertentu

$pos = $name.IndexOf(";")
$leftPart = $name.Substring(0, $pos)
$rightPart = $name.Substring($pos+1)
Courageous Capybara