Run console command on join

Hi, I was wondering if it’s possible to make a lua code that executes a console command on every client that joins the server when they join. I’m just learning lua and i think this code will help me learn. Thanks!

[lua]hook.Add(“PlayerInitialSpawn”, “fp”, function( ply )
ply:ConCommand(“console command here”)
end)[/lua]