It can be done by making changes in Pi's startup app using the startup editor on Powershell and adding the app that you want to be autostarted.
This is how to do it:
Just run the IotStartup.exe with Power shell.
Enter "IotStartup list".
Locate the app you want to autostart.
Then, type in "IotStartup add" followed by the [name of your app] enclosed in square brackets.
Now make sure to reboot after this, and your app will be added to startup.