Automated and timed server restart

i looking for a .lua that my server automatic restart at specific times( 0AM, 1PM, 8PM)
And importand is a server message befor the restat with a warning.