I have lost the Power cable and couldn't find it anywhere but i have tried using my Printer's cable (HP) and it worked but i am wondering if there is any risk from using it? could it affect the ps4 in any way?
no, a lot of appliances contain the same ports thus you can use your printer cable for your PS4. i've done this a lot because when my dog was little she would chew up all the wires to my appliances. other then that no as long as it properly fits and your not forcing it in then it will work just fine. those cables are also not hard to replace where as some appliances got retarded ports and thus you MUST buy a new one via the manufacturer alone.
Nope it won't affect your PS4. I do suggest you get a new Printer Cable too.
If it works, I wouldn't think there would be any risk in my opinion. Its probably the same kind of cord.