How to configure a OneDrive file for use with wget
-
Right click file and choose embed

Click Generate

Copy embed code and extract out URL

Change embed to download in URL

Now create your command using wget
wget --no-check-certificate "https://onedrive.live.com/download?cid=E7B1244EB32C92BE&resid=E7B1244EB32C92BE%214342&authkey=AM2GkZym39m6oB4"Now rename file to original name and delete garbage name
cp download\?cid\=E7B1244EB32C92BE\&resid\=E7B1244EB32C92BE\!4342\&authkey\=AM2GkZym39m6oB4 testfile.txt rm download\?cid\=E7B1244EB32C92BE\&resid\=E7B1244EB32C92BE\!4342\&authkey\=AM2GkZym39m6oB4 -
Added extra step of renaming file and deleting long garbage file name.