create file from script