New script for local execution; handle microstructure file at Swift level