I need to do some multiplication on the quantity in the string. I'm assuming that this is failing because the value is being returned as a string and not a number. The main body of this returns a 1 for the quantity but it falls apart on the multiplication.
720 * ([int]{
$Inputstring ="Monthly Server Rental X 1 = $28.00"
$CharArray =$InputString.Split(" ")
$String1= $CharArray[4];
write-host $String1
})