FYI you can pass Form objects to open_form
too. But the problem here is something else. You are running this code on init when the first form hasn’t even opened. This is why the code is not working.
You can pass this code to form_show
event.
Also, I think it will be much better if you set a startup module instead of startup form.