in reply to Failed to create work\\startup directory

Get more information on why it failed by inspecting $? (tip #7 from Basic debugging checklist)
print("create work\\startup directory failed: $?\n");
See also mkdir -p