Zend certified PHP/Magento developer

How can I mount and unmount a volume with powershell or otherwise replace diskpart? [duplicate]

I made a utility to mount and unmount volumes. The utility shells out to diskpart creating a text file by redirecting output, then opens and reads the text file. Since adding a 20 terabyte drive diskpart runs very slow and my utility takes a long time to mount and unmount volumes. The utility is easier than using Windows Disk Management. I’m not able to find syntax for doing the same with powershell. Commands for diskpart are:

list volume
select volume 3
assign letter=W
select volume 3
remove letter=W