extract-text
Function
Extracts a substring from text using start and end positions
Syntax
$result = extract-text 0 5 $text
extract characters from start to end position from variable
$result = extract-text 0 5 "hello world"
extract characters from start to end position from literal
$result = extract-text $start $end $text
extract using variable positions from variable text
$result = extract-text $start $end "hello world"
extract using variable positions from literal text