wsh scripts and api