Assuming that you want to use a command such as
unmap x y
then unmap.bat could be
@echo off
setlocal
:loop
set target=%1
if defined target net use %1: /delete &shift&goto loop
should do the task. %1 is the first parameter; the shift moves the parameters down so %2 becomes %1, etc.