Use %~xinstead %x(where x is the number of your parameter)
This removes any closing quotes from the paramater, therefore
echo parameter3=%~3
will show parameter3=
if you called it with yourbatch one two "" four
" space "as a parameter then this will show a space as% ~ 3` ( - )
, %x, - "", " " , . , , ...