Mitigate legal policy warning and certificate warning! while Automating RDP connection using powershell script


Good day!

I need some clarification here i need to automate RDP connection to multiple remote servers one after other am facing challenges due to below warnings which need manual intervention i have found some ideas to use send keys and other functionalities but no luck is there any way to avoid the below warnings! ,can someone help to provide ideas to mitigate ,any help much appreciated.