You could just try executing it with root permissions, ie sudo myScript