Installing a light designed to be hard wired as a corded light- what happens to the ground?
The best solution is to use a plug and cord with ground and only plug it into a grounded socket. 

Or you can use a GFCI protected plug, that will disconnect the power if a ground fault is detected. 

Failing to do either of them is dangerous.