I had a customer who wanted to run an excelscript daily but wanted to pay as little as possible for virtual machine hosting.
I’ve configured the VM to start and stop automatically and used below command to let a user logon automatically at the start of Windows 10.
$RegPath = "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon"
Set-ItemProperty $RegPath "AutoAdminLogon" -Value "1" -type String
Set-ItemProperty $RegPath "DefaultUsername" -Value "$username" -type String
Set-ItemProperty $RegPath "DefaultPassword" -Value "$password" -type String
change $usernamd and $password to your accounts username and password, reboot the machine and see if the user is logging in.