I change the code a little bit, so now it should be able to bypass windows defender without the shellcode
If you want to fully bypass windows defender, you gonna need to bypass AMSI and do some works to your shellcode, like obfuscation or encryption(I am gonna update a project soon which is a fully bypass windows defender project, hopefully, it is not too late, cause windows defender may catch up).