It is true that running diskpart /s script.txt usually exits when errors occur and not all commands support the noerr parameter.
The workaround for this , as usually, is simple :
just run diskpart...