Map a network drive in Windows script

PowerShell
@echo off
SET user=name
SET pass=password

net use x: /delete /y
net use z: /delete /y
net use x: \\192.168.0.10\share1 /user:%user% %pass%
net use z: \\192.168.0.10\share2 /user:%user% %pass%