Autorun Seeed XIAO RP2040

I have written a tiny Micro Pyton code using Thonny IDE. The code is saved to the XIAO 2040 with name: main.py.
From the Raspberry Pi Pico environment, I hoped this would start running as soon the XIAO is connected to a power supply (USB 5V). What is the secret to get this controller autorun?